Block chaining and string encryption for use with any block cipher.
Testing function. Just returns the result with no random generator update.
Decrypt a string created with encrypt.
See Crypto.Strings.Crypt.decrypt for more options.
This can get errors if the ciphertext you pass in decrypts to something that isn't a UTF-8 string.
Encrypt a string. Encode the output as Base64 with 80-character lines.
The
Seedparameter is aRandom.Seed, as created byRandom.initialSeedSee
Crypto.Strings.Crypt.encryptfor more options.This shouldn't ever return an error, but since the key generation can possibly do so, it returns a
Resultinstead of just(Ciphertext, randomState).