react-native-grasshopper
Version:
GOST 34-12 implementation for react-native
25 lines (15 loc) • 441 B
Markdown
Grasshopper GOST 3412-2015 ECB implementation with TypeScript for react native
```sh
npm install react-native-grasshopper
```
```js
import { decryptString, encryptString, generateKey } from 'react-native-grasshopper'
const key = generateKey()
const message = 'Hello World!'
const encrypted = encryptString(message, key)
const decrypted = decryptString(encrypted, key)
```