shark-hashlib

Makes Hashing Easier

Usage no npm install needed!

<script type="module">
  import sharkHashlib from 'https://cdn.skypack.dev/shark-hashlib';
</script>

README

HASH

In case of error, The lib give back null;

Example

const hash=require("shark-hashlib")

console.log(hash(2,"Hey"));

Console.log the MD5 hash from Hey

1 Param (NUMBER):

  • 0 = Sha256
  • 1 = Sha1
  • 2 = Md5

2 Param (String):

The value to Hash