aes-encryption
Encrypting and decrypting strings with aes-256-gcm
.
Installation •
Usage •
Contributors •
License
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'
const key = 'ZtdDl3Ex7ycFfgdbAC3uTLNk8eLVDcEd'
const encrypted = encrypt(key, 'My secret text')
const decrypted = decrypt(key, encrypted)
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors
specification. Contributions of any kind welcome!
License
MIT