Expand description
The abcrypt-wasm
crate is the Wasm bindings for the abcrypt
crate.
Structs§
- Params
- The Argon2 parameters used for the encrypted data.
Functions§
- decrypt
- Decrypts
ciphertext
and into a newly allocatedUint8Array
. - encrypt
- Encrypts
plaintext
and into a newly allocatedUint8Array
. - encrypt_
with_ params - Encrypts
plaintext
with the specified Argon2 parameters and into a newly allocatedUint8Array
. - header_
size - Returns the number of bytes of the header.
- tag_
size - Returns the number of bytes of the MAC (authentication tag) of the ciphertext.