Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talaikis/crypto-utils
https://github.com/talaikis/crypto-utils
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/talaikis/crypto-utils
- Owner: talaikis
- License: mit
- Created: 2024-10-29T12:37:35.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:14:49.000Z (about 2 months ago)
- Last Synced: 2024-12-06T03:29:46.411Z (about 1 month ago)
- Language: Swift
- Size: 5.01 MB
- Stars: 1
- 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
# rn-crypto-utils
React Native Crypto, etc. utils
## Installation
```sh
yarn add rn-crypto-utils
```## Usage
```js
import { sha256, generateKeyPair, signData, generateAESKey, aesEncrypt, aesDecrypt } from 'rn-crypto-utils';// ...
const result = await sha256("string");
const { privateKey, publicKey } = await generateKeyPair(2048, 'RSA');
const signed = await signData('string', privateKey);
const key = await generateAESKey(256);
const encrypted = await aesEncrypt('test string', key);
const decrypted = await aesDecrypt(encrypted, key);
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)