clay-crypto
Cryptographic utility for Clay DB
Installation
$ npm install clay-crypto --save
Usage
'use strict' const generate encrypt decrypt } = const publicKey privateKey = const encrypted = const decrypted = console
Functions
Available functions
Signature | Description |
---|---|
generate(bits) -> Array |
Generate RSA key |
sign(privateKey, text) -> string |
Create sign |
stringify(value) -> string |
Stringify object |
verify(publicKey, text, signature) -> boolean |
Verify text with signature |
License
This software is released under the Apache-2.0 License.