Skip to main content

A flexible CNN based Hash Function

Project description

FNN-Hash (Flexible Neural Network - Hash)

A flexible EXPERIMENTAL Hashing algorithm that uses Neural Network architecture to calculate the Hash of a given string.

BUT WHY make such a thing???

  • Neural Networks are intresting
  • I think of Neural networks as chaos mappers (things that can map/guess chaos--- dosent make sense I know but i just think of them that way)
  • and Neural Networks can be modified to do lot of things (as you can see with this current project)
  • and i love to do cryptography related stuff.

Intern Working and Structure

Some Notes

  • the node activation function is a threshold gate.
  • the number of nodes in inputlayer = 2 x no. of nodes in outout layer
  • and those number of nodes changed by user easily thus changing the size of hash generated.(max size = 1024 NOTE: 1024 size hash takes a lot of time so be patient when you request for a hash size of 1024)

Requirements

  • make sure you have NUMPY (Thise was made on version 1.19.2)

HOW TO USE

  1. drop the python file FNNH.py in the same directory of the file you want to use it with.
  2. and to use the algo write :
from FNNH import FNNH

data = "qwerty"
sizeofhash = 16
rounds = 64

thehash = FNNH(data,sizeofhash,rounds)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FNNH-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

FNNH-0.0.1-py3-none-any.whl (14.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page