Skip to content

Repository files navigation

aes-encryption

Encrypting and decrypting strings with aes-256-gcm

Package VersionBuild StatusCode Coverage

InstallationUsageContributorsLicense


Installation

yarn add @devoxa/aes-encryption

Usage

Under no circumstances use this for passwords. You should be using hashing instead. Read more

import{encrypt,decrypt}from'@devoxa/aes-encryption'// The 32 character encryption keyconstkey='ZtdDl3Ex7ycFfgdbAC3uTLNk8eLVDcEd'constencrypted=encrypt(key,'My secret text')// -> 'j2G63AgcRSkiFeE4jonB8I/GZYp6Uc40ItdwSappAWi75ItbDzzoOzo7EuaMaA=='constdecrypted=decrypt(key,encrypted)// -> 'My secret text'

Contributors

Thanks goes to these wonderful people (emoji key):


David Reeß

💻📖⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

About

Encrypting and decrypting strings with `aes-256-gcm`

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages