Decryption perl script

This is a simple perl script I wrote for myself, to encrypt and decrypt INI file parameters, so that passwords weren't saved in cleartext.

The format of the files should be:

<propertyname>=%%Encrypted:<propertyvalue>%%

Running encryption.pl as follows on the file will encrypt everything after the "Encrypted:" tag up to the "%%" ending.

perl encryption.pl <passphrase> <filename>

Running decryption.pl on it will yield a properly formatted INI file with all the encrypted parameters decrypted into cleartext.

perl decryption.pl

AttachmentSize
encryption.pl.txt709 bytes
decryption.pl.txt689 bytes