Liking cljdoc? Tell your friends :D

district-encryption

Set of functions helpful for data encryption on blockchain based on public/private key. This library utilises eccjs. Suitable for both nodejs and browser.

Installation

Add
Clojars Project into your project.clj

Include [district.encryption] in your CLJS file.

district.encryption

generate-keypair []

Generates and returns public/private keypair.

encrypt [public-key content]

Encrypts content with public key.

decrypt [private-key content]

Decrypts content with private key.

encode-base64 [string]

Base64 encodes string.

decode-base64 [string]

Base64 decodes string.

encrypt-encode [public-key content]

Encrypts with public key and then base64 encodes.

decode-decrypt [private-key content]

Base64 decodes and then decrypts with private key.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close