Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hayr-hotoca/react-native-key-generator
256-bit encryption, cipher key generator - native implementation.
https://github.com/hayr-hotoca/react-native-key-generator
256-bit android cipher cross-platform cryptography encryption ios javascript key react react-native typescript
Last synced: 1 day ago
JSON representation
256-bit encryption, cipher key generator - native implementation.
- Host: GitHub
- URL: https://github.com/hayr-hotoca/react-native-key-generator
- Owner: hayr-hotoca
- License: mit
- Created: 2023-07-18T15:29:14.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-14T10:21:41.000Z (over 1 year ago)
- Last Synced: 2024-11-01T07:17:55.308Z (16 days ago)
- Topics: 256-bit, android, cipher, cross-platform, cryptography, encryption, ios, javascript, key, react, react-native, typescript
- Language: Java
- Homepage: https://1limx.com
- Size: 341 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-key-generator
Secure unique 128, 192, 256 bit key generator for React Native
# Requirements
iOS >= 13.0\
Android >= 26## Installation
```sh
npm i --save react-native-key-generator
```## Usage
```js
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=
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## AuthorHayr Hotoca | [@1limxapp](https://twitter.com/1limxapp)
## License
MIT