Skip to content

Ghalbeyou/hashthefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash The File

1 2 3 4

An Easy Way To Hash Files.

Install

Install this package with:

npm i hashthefile

Usage

to create SHA256 hash of file enter this code:

const filehasher = require('hashthefile');
console.log(filehasher.getfileHash("FILENAME"));
//4ea5c508a6566e76240543f8feb06fd457777be39549c4016436afda65d2330e

to get MD5 hash text, enter this code:

const filehasher = require('hashthefile');
console.log(filehasher.gettextMD5("text"));
//168726dbe96b3ce427e7fedce31bb0bc

End

this is the end! creator is GHALBEYOU