Secure unique 128, 192, 256 bit key generator for React Native
iOS >= 13.0
Android >= 26
npm i --save react-native-key-generator
import { generateSymmetricKey } from 'react-native-key-generator';
// ...
const key = await generateSymmetricKey({
size: 256, // 128, 192 or 256 bit key
outputEncoding: "base64" // base64 or hex
});
console.log(key);
// aZw4qfXzcvVb9mF9ojQIlvkSscGZ0b2NzdG48bRutUc=
See the contributing guide to learn how to contribute to the repository and the development workflow.
Hayr Hotoca | @1limxapp
MIT