first version of encrypt.pl