sha512-crypt-ts
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "sha512-crypt-ts", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Typescript wrapper for SHA-512, including $6$ crypt format.", | ||
@@ -23,3 +23,3 @@ "scripts": { | ||
], | ||
"author": "Jan Bednar <public@janbednar.eu> (http://janbednar.eu)", | ||
"author": "Jan Bednar <public@janbednar.eu> (https://janbednar.eu)", | ||
"repository": { | ||
@@ -26,0 +26,0 @@ "type": "git", |
@@ -23,4 +23,5 @@ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) | ||
sha512.crypt('password', 'saltsalt'); | ||
// This is equivalent to: printf "password" | mkpasswd --stdin --method=sha-512 --salt=saltsalt | ||
// Returns $6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/ | ||
``` | ||
Another examples can be found in [unit tests](https://github.com/bedlaj/sha512-crypt-ts/blob/master/tests/sha512.test.ts) or in peer project [bedlaj/unifi-reset-password](https://github.com/bedlaj/unifi-reset-password/blob/master/src/app/app.component.ts). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26309
27