How can I scan a directory for jpg files and rename them?
e.g. *.jpg to *.dat
The code should automatically find all files so I do not have to add them manually (rename 1.jpg -> 1.dat, rename 2.jpg -> 2.dat).
The files should also be encrypted with the Blowfish object, e.g. encrypt all found .dat files in one go.