Git Product home page Git Product logo

crypto-client's Introduction

Plaintext Encryption/Decryption Demo

ursa dependency is not building on Windows 11 - this app may not work at all as at 20-12-2022

What is this?

A demo client to illustrate encryption, decryption and hashing functions with AES, SHA2 and RSA.

Alt text

IMPORTANT DISCLAIMER!! This is not a secure application, or a secure or recommended way of encrypting data, it's a simple demo to illustrate the principles only. Do not use this a secure encryption example / reference code for a secure system in any way. Please refer to the numerous articles and info on encryption and security on the interwebs for that!

Contains

  • /public = CSS (stylesheet)
  • /views = ejs based index.html page
  • /controllers = controller code with HTTP UI rendering and encryption code
  • app.js main app code

Functionality:

  • encrypt plaintext to cipher using password/secret (AES)
  • decrypt cipher to plaintext using password/secret (AES)
  • hash plaintext, using an optional password/secret (SHA-2)
  • rsa key generation create private and public keys
  • rsa encryption using public key
  • rsa decryption using private key

Acknowledgements

Based on Christoph Hartmann examples at: http://lollyrock.com/articles/nodejs-encryption/

Installation overview

Clone Repo an install module dependencies

https://github.com/ajyounguk/crypto-demo
cd crypto-demo
npm install

How to run it

node app.js

point your browser at the local/remoteIP port 3000 to load the cryptography demo html UI

EOL Readme..

crypto-client's People

Contributors

ajyounguk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

avii-km

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.