Crate scryptenc_wasm

Source
Expand description

The scryptenc-wasm crate is the Wasm bindings for the scryptenc crate.

Structs§

Params
The scrypt 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 scrypt parameters and into a newly allocated Uint8Array.
header_size
The number of bytes of the header.
tag_size
The number of bytes of the MAC (authentication tag) of the scrypt encrypted data format.