Constructors
constructor
- new CryptoBox(secretKey, peerPublicKey): CryptoBox
Properties
Readonly
publicKey
publicKey: string
Methods
decrypt
- decrypt(base64string): string
Returns string
encrypt
- encrypt(plaintext): string
Returns string
free
- free(): void
Returns void
toJSON
- toJSON(): Object
Returns Object
toString
- toString(): string
Returns string
CryptoBox allows for encrypting and decrypting messages using the
crypto_box
crate.https://docs.rs/crypto_box/0.9.1/crypto_box/