Skip to content

ganeshkbhat/apis-hasher

Repository files navigation

hasher-apis

Simpler flexible implementation Crypto Module functions to hash/ encrypt/ decrypt content and get SHA or other algorithm hashes of text or any data

Find the demos in the demos folder

APIs hasher

You can find details about used crypto algorithm details in the nodejs crypto, cipher, decipher, diffiehellman, hmac, hash, and other docs here

Commonjs Code


var crypt = require("hasher-apis");
crypt.createSHA(
    data="texter data", 
    algorithm = "sha256", 
    digest="base64", 
    options = { logger: console.log }
    )

ESM Code


import { default as _createSHAHash, createSHA } as "hasher-apis";
createSHA(
    data="texter data", 
    algorithm = "sha256", 
    digest="base64", 
    options = { logger: console.log }
    )

ESM or Commonjs Code


var crypt = import("hasher-apis");
crypt.createSHA(
    data="texter data", 
    algorithm = "sha256", 
    digest="base64", 
    options = { logger: console.log }
    )

hasher-apis APIS Methods

***PKG - package

hasher-apis APIS Methods

Demo Usages for Content (with or without keys)

hashContent / encrypt

Create an encrytion using a content using salt and algorithms

Usage: encrypt(data, salt, algorithm, keyAlgorithm, digest, options)


TODO

Details in todo file

Contributions

Contributions, Feature Improvements, Bugs, and Issues are invited. raising an issue

License

MIT License