Get the salt as base64 string
Returns an object containing ranges
, an array of objects
containing offset
and length
integers specifying the encrypted byte
ranges that are needed to decrypt the client's specified range, and a
decrypt
function.
Integer
Integer
Integer
Encrypt and return some data; don't stream.
NOTE: This generates a new key each time it is called, via
this.generateKey
.
Optional
opts: { iv?: Uint8Array; size?: number }Optional params,
iv
and size
. If size
is omitted, default is 16 bytes. iv
is
a random 12 bits, will be generated if not passed in.
Static
AuthStatic
Header
Get the main key as a
base64url
encoded string