@pmishra0/react-native-aes-gcm
v0.1.7
Published
AES-GCM encryption/decryption for React Native
Readme
react-native-aes-gcm
AES-GCM encryption/decryption for React Native
Installation
npm install react-native-aes-gcmUsage
import { encrypt, decrypt } from '@pmishra0/react-native-aes-gcm';
// ...
const encrypted = await encrypt(text, key, {
iterationCount: 1000,
saltLength: 16,
ivLength: 12
}).catch((e) => {
console.log('Error Enctyption:: ', e);
});
const decrypted = await decrypt(text, key, {
iterationCount: 1000,
saltLength: 16,
ivLength: 12
}).catch((e) => {
console.log('Error:: ', e);
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
