Crate abcrypt_wasm

Source
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 allocated Uint8Array.
encrypt
Encrypts plaintext and into a newly allocated Uint8Array.
encrypt_with_params
Encrypts plaintext with the specified Argon2 parameters and into a newly allocated Uint8Array.
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.