Giter Club home page Giter Club logo

hashing's Introduction

Hashing

Dual layer hashing (random salted SHA3 1600 bits & 2048 bit RSA for security improvisation).

Programming Language - Python3

Libraries needed : Numpy

Prime Generator

Program to get next prime number efficiently and fastly for getting RSA keys.
File containing progran is primegenerator.py. Here, function defined for getting next prime is next_prime.

Key Generator

File is KeyGenerator.py.
It has a class KeyGenerator containing all the three keys required for RSA encryption.
On initialization with Number Of Bits it gives us unique keys for RSA encryption.
It contains 3 variables 'e' and, 'n' as public key. And, 'd' as private key.

SHA Hashing

File is shasaltpass.py.
It has a class shasaltpass which contains the whole program.
It has two functions :
hashRegister : This encrypt string using random salts and returns hash embedded with salt.
hashVerify : It has two inputs string to be compared and hash. It extract salt from hash and using that hash generate hash. It return boolean value for whether generated hash and input hash are same or not.

Securing hash

Algorithm used is RSA.
It is done in order to secure the hash so that salt can't be easily extracted. Thus, giving user dual security as their own password and system generated unique password.
It has two functions :
encrypt : This generate salt embedded hash using SHA3 and then, using RSA it further encrypt the hash in order to hide salt. This gives us a new hash which is dually encrypted.
check : This decrypt encrypted hash and then use hashVerify method of shasaltpass to verify the password entered.

Main

Loads EncDec class which contains final encrypt and check function.

hashing's People

Contributors

vishal-kr-barnwal avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.