Skip to content

Set of functions helpful for data encryption on blockchain based on public/private key

License

Notifications You must be signed in to change notification settings

district0x/district-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

district-encryption

Build Status

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.

About

Set of functions helpful for data encryption on blockchain based on public/private key

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published