Press on the image to return to the main documentation page. |

MessageDigest

SecureRandom

Encrypt and Decrypt methods are compatible with B4J/B4A B4XCipher methods.

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.

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.

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.

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.

Algorithm - One of the following values: MD5, SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512.

Top