updated encryptor.rb