Skip to content

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.

readonly encAlg: "AES-GCM" = 'AES-GCM'

The default cipher used for new encryptions.

readonly hashAlg: "SHA-256" = 'SHA-256'

The default hash algorithm used for KDF for new encryptions.

readonly iterations: 100000 = 100000

The default KDF iterations for new encryptions.

readonly kdf: "PBKDF2" = 'PBKDF2'

The default KDF algorithm used for new encryptions.