Cipher object

The Cipher object encrypts/decrypts binary data using a chosen algorithm and key

Property Description Access Type
Cipher.algorithm Get the algorithm used by the Cipher object readonly string
Cipher.decrypted Get decrypted binary data readonly
Cipher.encrypted Get encrypted binary data readonly
Methods Description Return value
Cipher:constructor() Cipher object constructor
Cipher:decrypt() Decrypt binary data number
Cipher:encrypt() Encrypt binary data number
Cipher:reset() Clear internal encryption/decryption buffers. -