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
ciphertextand into a newly allocatedUint8Array. - encrypt
- Encrypts
plaintextand into a newly allocatedUint8Array. - encrypt_
with_ context - Encrypts
plaintextwith the specified Argon2 type, Argon2 version and Argon2 parameters and into a newly allocatedUint8Array. - encrypt_
with_ params - Encrypts
plaintextwith 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.