Libraries anvil crypto Cipher

class Cipher
extends anvil.lang.object
Used for encrypting and decrypting data. Using symmetric algorithms: DES, TripleDES, Blowfish.

Methods

binary final()
Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
binary final(object data [, int offset, int length] )
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
Parameters data -  string or binary data
offset -  offset in data
length -  length of data
Returns processed data

string getAlgorithm()
Returns the algorithm name of this Cipher object.

int getBlockSize()
Returns the block size (in bytes).

binary update(object data [, int offset, int length] )
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
Parameters data -  string or binary data
offset -  offset in data
length -  length of data
Returns processed data