2.0.0 • Published 2 years ago

@devoxa/aes-encryption v2.0.0

Weekly downloads
53
License
MIT
Repository
github
Last release
2 years ago

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 key
const key = 'ZtdDl3Ex7ycFfgdbAC3uTLNk8eLVDcEd'

const encrypted = encrypt(key, 'My secret text')
// -> 'j2G63AgcRSkiFeE4jonB8I/GZYp6Uc40ItdwSappAWi75ItbDzzoOzo7EuaMaA=='

const decrypted = decrypt(key, encrypted)
// -> 'My secret text'

Contributors

Thanks goes to these wonderful people (emoji key):

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

License

MIT

2.0.0

2 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago