Possible uses of Crypto Keys
Derive Key Algorithms at at Web Crypto API
Derive Algorithms Params for Web Crypto API
Import Key Algorithms at Web Crypto API
Default number of iterations used with PBKDF2 algorithm
Decode a ArrayBuffer value to a string. If the given value is already a string, then the value will be returned without any transformation.
Value to be decoded.
The transformed given value as a string.
Decrypt a value with the given Crypto Key and Algorithm
Value to be encrypted.
The Crypto Key used in encryption.
The nonce used for AES encryption or the custom algorithm.
A promise with the decrypt value
Derives a base Crypto Key to new one that can be used in encrypt / decrypt algorithms
or any other possible uses in CryptoKeyUsage
.
The base Crypto Key to be derive.
The salt value to be used with the default PBKDF2
derive algorithm.
The number of iterations to be used with the default PBKDF2
derive algorithm. Default value: PBKDF2_ITERATIONS_DEFAULT
.
The new uses of the new derive Crypto Key. Default value: ['encrypt', 'decrypt']
.
A promise with the derived Crypto Key for other uses.
Derives a base Crypto Key to new one that can be used in encrypt / decrypt algorithms
or any other possible uses in CryptoKeyUsage
.
The base Crypto Key to be derive.
The salt value to be used with the default PBKDF2
derive algorithm.
The algorithm where the derived Crypto Key will be used. Default value: { name: 'AES-GCM', length: 256 }
.
The new uses of the new derive Crypto Key. Default value: ['encrypt', 'decrypt']
.
A promise with the derived Crypto Key for other uses.
Derives a base Crypto Key to new one that can be used in encrypt / decrypt algorithms
or any other possible uses in CryptoKeyUsage
.
The base Crypto Key to be derive.
The algorithm to be used when deriving the Crypto Key.
The algorithm where the derived Crypto Key will be used. Default value: { name: 'AES-GCM', length: 256 }
.
The new uses of the new derive Crypto Key. Default value: ['encrypt', 'decrypt']
.
A promise with the derived Crypto Key for other uses.
Encode a string value to a Typed Array as Uint8Array
.
If the given value is already a Typed Array, then the value will be returned without any transformation.
Value to be encoded.
The transformed given value as a Typed Array.
Encrypt a value with the given Crypto Key and Algorithm
Value to be encrypted.
The Crypto Key to be used in encryption.
The algorithm to be used in encryption. Default to AES-GCM
.
A promise with the encrypted value and the used nonce, if used with the encryption algorithm.
Creates a base Crypto Key from the original raw key, by default this base key should just be used to protect the original key to be discovery, and should not be used directly to any encrypt / decrypt algorithm. The generated base crypto key should be used just to derive new ones, that then will be used to encrypt / decrypt algorithms.
The original key to start the encrypt process.
The algorithm used to import the key.
The uses for the generated Crypto Key.
Input format for the raw key.
A promise with the base Crypto Key.
Generates a hash value for the given value.
Seed value to generate a hash.
The algorithm to be used when generating the hash.
A promise containing the hash value.
Generates random value to be used as nonce with encryption algorithms.
The byte size of the generated random value.
The random value.
Generates random value as a typed array of Uint8Array
.
The byte size of the generated random value.
The random value.
Generates random value to be used as salt with encryption algorithms.
The byte size of the generated random value.
The random value.
Returns the crypto object depending on browser support. IE11 has support for the Crypto API, but it is in a different global scope.
The Crypto object.
Type Guard to Typed Array.
Any data to be checked.
Verify if the given data is a Typed Array.
Generated using TypeDoc
Params for Encrypt / Decrypt Algorithms at Web Crypto API