TextScrambler

If you do not want to use the defaults, the values must be set prior to calling encrypt or decrypt. For example, to change the key obtention iterations:

Stringop.setEol("\n"); // If you don't want the operating system to decide
// what return character to use for encrypted text linewrapping.
new TextScrambler().withKeyObtentionIterations(5000).encrypt(pwd, msg);
*

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun decrypt(password: String, msg: String): String

Decrypt a message.

Link copied to clipboard
fun decryptFromBytes(password: String, bytes: ByteArray): String

Decrypt a message that was encrypted with encrypt2bytes.

Link copied to clipboard
fun encrypt(password: String, msg: String): String

Encrypt a message.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard