Skip to content

A simple, safe way to encrypt a JSON object to be transported over the Internet using OpenSSL along with SHA256 signatures.

Notifications You must be signed in to change notification settings

gms298/JSON-Encryption-with-SHA-Signatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON - Encryption with SHA256 Signatures

Description

A simple, safe way to encrypt a JSON object to be transported over the Internet using OpenSSL - 8192 bit RSA along with SHA256 signatures.

Execution

Clone this repository and change directories.

Make two new folders named server & client and then run the commands below (in each folder) in Terminal on Ubuntu/Linux/macOS.

  • Generate the 8192 bit RSA keys using,

    openssl genrsa -out privatekey.pem 8192 to generate the private key

    openssl rsa -in privatekey.pem -pubout -out publickey.pem to generate the public key.

Change directories again (where package.json is located).

Run npm install to automatically install all dependencies required by this project.

Run the project using nodejs index.js or node index.js (for legacy node installations).

About

A simple, safe way to encrypt a JSON object to be transported over the Internet using OpenSSL along with SHA256 signatures.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published