New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chain-hash

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-hash - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "chain-hash",
"description": "chain-hash package",
"version": "0.1.1",
"version": "0.1.2",
"main": "./dist/chain.js",

@@ -6,0 +6,0 @@ "types": "dist/chain.d.ts",

# hash-chain
## example
### Using
```js
import ChainHash from "chain-hash";
let firstInputPassword = "123456789";
//get encrypt key (※ do not save this Key)
console.log(chain.GetKey);
// output : cfff25b6e5fa64717f53d77b2986023c07a560c78247022389a6c984588263a61f306fc920f88617b6fd0bd82a6a4ec0667098eef7a969625775a94dcf8d67f3db connect
//save this Validate
console.log(chain.GetVaildate);
// output : c361424b4c43a3030205effedd4fe33150bdf501c8bbc43bf04a9b62dc238ebcb10a16d1206f1d3ec55a12b7f3266a051fedc908d1393d62d1d21ffc78a8d411
//save server
let vaildate = "c361424b4c43a3030205effedd4fe33150bdf501c8bbc43bf04a9b62dc238ebcb10a16d1206f1d3ec55a12b7f3266a051fedc908d1393d62d1d21ffc78a8d411";
//input user
let laterInputPassword = "123456789";
let chain = new ChainHash(inputPassword);
console.log(chain.isValidate(password));
// output : true
//using decrypt key
console.log(chain.GetKey);
// output : cfff25b6e5fa64717f53d77b2986023c07a560c78247022389a6c984588263a61f306fc920f88617b6fd0bd82a6a4ec0667098eef7a969625775a94dcf8d67f3db connect
```
### Chainge key Size
```js
let chain = new ChainHash(inputPassword, 224);
let chain = new ChainHash(inputPassword, 256);
let chain = new ChainHash(inputPassword, 384);
//default
let chain = new ChainHash(inputPassword, 512);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc