static fun encryptInteractive(message: Bytes, password: String): Bytes (source)static fun encryptInteractive(message: ByteArray, password: String): ByteArray (source)
Encrypt a message with a password, using PasswordHash for the key generation (with the currently recommended algorithm and limits on operations and memory that are suitable for interactive use-cases).
message - The message to encrypt.
password - The password to use for encryption.
Return
The encrypted data.
static fun encryptInteractive(message: Bytes, password: String, algorithm: Algorithm): Bytes (source)static fun encryptInteractive(message: ByteArray, password: String, algorithm: Algorithm): ByteArray (source)
Encrypt a message with a password, using PasswordHash for the key generation (with limits on operations and memory that are suitable for interactive use-cases).
message - The message to encrypt.
password - The password to use for encryption.
algorithm - The algorithm to use.
Return
The encrypted data.