react-aes-gcm-encryption
v1.0.3
Published
AES-GCM encryption/decryption for React
Maintainers
Readme
react-aes-gcm-encryption
AES-GCM encryption/decryption for React
Installation
npm install react-aes-gcm-encryptionUsage
import { encrypt, decrypt } from 'react-aes-gcm-encryption';
// ...
const encrypted = await encrypt(
text,
key,
keyLength,
saltLength,
ivLength,
tagLength,
iterations,
);
const decrypted = await decrypt(
text,
key,
keyLength,
saltLength,
ivLength,
tagLength,
iterations,
);
Example
https://prashantkmishra.github.io/react-aes-gcm-encryption/
License
MIT
