EncryptionServices

Encryption and decryption services

EncryptionServices Functions

decrypt EncryptionServices.decrypt( message [, count , key ] ) Decrypts the string represented by message using the PBEWithMD5AndDES algorithm.
decryptAES EncryptionServices.decryptAES( message [, key ] [, iterations ] ) Decrypts a Base64 encoded string represented by message using the AES algorithm and a 128 bit key.
encrypt EncryptionServices.encrypt( message [, count , key ] ) Encrypts the string represented by message using the PBEWithMD5AndDES algorithm.
encryptAES EncryptionServices.encryptAES( message [, key ] [, iterations ] ) Returns a Base64 encoded Encrypted string represented by message using the AES algorithm and a 128 bit key.
generateHash EncryptionServices.generateHash( message , iterations , salt ) Hashes a string represented by message using the PBKDF2WithHmacSHA512 algorithm and a 512 bit key.
generateRandomSalt EncryptionServices.generateRandomSalt( bytes ) Generates a salt suitable for generateHash.