Skip to content

@nhtio/encryption

Provides a utility which allows for the encryption and decryption of data.

Classes

ClassDescription
EncryptionThe encryption class allows encrypting and decrypting values using aes-256-cbc or aes-128-cbc algorithms. The encrypted value uses a unique iv for every encryption and this ensures semantic security (read more https://en.wikipedia.org/wiki/Semantic_security).
SecretDefine a Secret value that hides itself from the logs or the console statements.

Variables

VariableDescription
versionThe current version of the package.

References

errors

Renames and re-exports @nhtio/encryption/errors


types

Renames and re-exports @nhtio/encryption/types