DEFAULTS
const
DEFAULTS:object
Defined in: astrobase/src/encrypt/encrypt.ts:43
The default EncryptOptions for new encryptions.
Note that these will certainly change in the future and cannot be relied upon for future decryption. Therefore, the options should always be stored alongside the payload even when defaults are used.
Type declaration
Section titled “Type declaration”encAlg
Section titled “encAlg”
readonly
encAlg:"AES-GCM"
='AES-GCM'
The default cipher used for new encryptions.
hashAlg
Section titled “hashAlg”
readonly
hashAlg:"SHA-256"
='SHA-256'
The default hash algorithm used for KDF for new encryptions.
iterations
Section titled “iterations”
readonly
iterations:100000
=100000
The default KDF iterations for new encryptions.
readonly
kdf:"PBKDF2"
='PBKDF2'
The default KDF algorithm used for new encryptions.