dubhash

Hash strings into unique values that will always be the same for the string and are hard to unencrypt.

Usage no npm install needed!

<script type="module">
  import dubhash from 'https://cdn.skypack.dev/dubhash';
</script>

README

Warnings and Disclaimers

This encryption script makes a file in its root directory called: db.dhash
that file contains the JSON table of the values for each letter, number and symbol; This may or may not be used to decrypt any data that was hashed.
There has not been a known way of decrypting hashed strings yet.
You're responsible for the security of this file.

Initiation

To get started, Require the script, EXAMPLE: var dhash = require('dubhash')

Then you may use the hash function.
dhash.hash('password');
which will return any sort of thing.
Or if you wish to encrypt the hash with a second layer and/or shorten it,
you may do this to have it auto encryptic with MD5.
dhash.hash('password', true);

How it works

DubHash works by creating a table, full of the letters, numbers and symbols in the english language. Each letter, number and symbol has its own unique (per index directory of where it was required from) replacements.
When hashed, It replaces these letters, while also replacing its own replacements with even more replacements. In most cases, this will make the password, pretty much undecryptable. (It is possible, I myself haven't found a way.)