Decrypts the given data and returns an array of bytes with the decrypted data. Data - Data to decrypt. Key - Cipher key. Algorithm - One of the following values: AES, DES, 3DES or BLOWFISH. IV - Initialization vector for block algorithms. Pass Null if not required. Options - Zero or more OPTION constants combined with Bit.Or.
Encrypts the given data with AES algorithm. A random salt and initialization vector are created and stored together with the encrypted data (public data). Encrypt and Decrypt methods are compatible with B4J/B4A B4XCipher methods.
Encrypts the given data and returns an array of bytes with the encrypted data. Data - Data to encrypt. Key - Cipher key. Algorithm - One of the following values: AES, DES, 3DES or BLOWFISH. IV - Initialization vector for block algorithms. Pass Null if not required. Options - Zero or more OPTION constants combined with Bit.Or.
Generates a key from the password. Password - The key is derived from this password. Algorithm - One of the following values: SHA-1, SHA-22, SHA-256, SHA-384 or SHA-512. Salt - The key salt. Rounds - Number of rounds that the algorithm will be applied.
Calculates the message digest (hash or checksum) of the given data. Algorithm - One of the following values: MD5, SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512.