node-password-lite 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +142 -0
- package/lib/cjs/constants.js +5 -0
- package/lib/cjs/hash.js +28 -0
- package/lib/cjs/index.js +14 -0
- package/lib/cjs/salt.js +21 -0
- package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/cjs/typings.js +8 -0
- package/lib/cjs/verify.js +14 -0
- package/lib/esm/constants.js +2 -0
- package/lib/esm/hash.js +24 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/salt.js +17 -0
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/esm/typings.js +5 -0
- package/lib/esm/verify.js +10 -0
- package/lib/types/constants.d.ts +7 -0
- package/lib/types/hash.d.ts +9 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/salt.d.ts +2 -0
- package/lib/types/tsconfig.typings.tsbuildinfo +1 -0
- package/lib/types/typings.d.ts +7 -0
- package/lib/types/verify.d.ts +9 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# nodejs-password
|
|
2
|
+
|
|
3
|
+
A library tools help you to hash passwords, based on javascript promises not callback convention like most nodejs modules and functions.
|
|
4
|
+
|
|
5
|
+
## If You Are Submitting Bugs or Issues
|
|
6
|
+
|
|
7
|
+
Verify that the node version you are using is a _stable_ version; it has an even major release number. Unstable versions are currently not supported and issues created while using an unstable version will be closed.
|
|
8
|
+
|
|
9
|
+
If you are on a stable version of node, please provide a sufficient code snippet or log files for installation issues. The code snippet does not require you to include confidential information. However, it must provide enough information such that the problem can be replicable. Issues which are closed without resolution often lack required information for replication.
|
|
10
|
+
|
|
11
|
+
## Security Issues And Concerns
|
|
12
|
+
|
|
13
|
+
As should be the case with any security tool, this library should be scrutinized by anyone using it. If you find or suspect an issue with the code, please bring it to my attention and I'll spend some time trying to make sure that this tool is as secure as possible.
|
|
14
|
+
|
|
15
|
+
## Dependencies
|
|
16
|
+
|
|
17
|
+
- Development
|
|
18
|
+
- Typescript
|
|
19
|
+
- Jest for testing
|
|
20
|
+
- Babel
|
|
21
|
+
|
|
22
|
+
## Install via NPM
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
npm install nodejs-password
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Install via YARN
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
yarn add nodejs-password
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { passwordHash, passwordVerify } from 'nodejs-password'
|
|
38
|
+
// generating salt it possible via helpers function see salt section below
|
|
39
|
+
const salt = 'salt'
|
|
40
|
+
const password = 'user-password'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### To hash a password:
|
|
44
|
+
|
|
45
|
+
passwordHash function accept 3 params:
|
|
46
|
+
|
|
47
|
+
- password to hash
|
|
48
|
+
- salt used to hash the password saved in DB
|
|
49
|
+
- the last params is an object contain the length proprety(number of characters to extract)
|
|
50
|
+
|
|
51
|
+
Technique 1 (hash password):
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
// Store hash in your password DB.
|
|
55
|
+
try {
|
|
56
|
+
const hash = passwordHash(password, salt)
|
|
57
|
+
} catch (error) {
|
|
58
|
+
// handle errors
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Generate a salt using helpers functions:
|
|
63
|
+
|
|
64
|
+
Technique 2 (hash password by generating salt):
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { generateSalt } from 'nodejs-password')
|
|
68
|
+
|
|
69
|
+
// not forget to surround with sync function to use await keywords
|
|
70
|
+
try {
|
|
71
|
+
const salt = await generateSalt(16);//
|
|
72
|
+
const hash = passwordHash(password, salt);
|
|
73
|
+
// Store hash in your password DB.
|
|
74
|
+
} catch(error) {
|
|
75
|
+
// handle errors
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
generateSalt helper function accept 2 params:
|
|
80
|
+
|
|
81
|
+
- Firsth the number of characters to generate (for more solid salt at least specify 16)
|
|
82
|
+
- Second present algorithem to use sha256/sha512(see example below) default value is sha256
|
|
83
|
+
|
|
84
|
+
```javascript
|
|
85
|
+
import { generateSalt, HashAlgoProps } from 'nodejs-password'
|
|
86
|
+
|
|
87
|
+
// not forget to surround with sync function to use await keywords
|
|
88
|
+
try {
|
|
89
|
+
const salt = await generateSalt(16, HashAlgoProps.sha512)
|
|
90
|
+
const hash = passwordHash(password, salt)
|
|
91
|
+
// Store hash in your password DB.
|
|
92
|
+
} catch (error) {
|
|
93
|
+
// handle errors
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Note that both techniques achieve the same end-result.
|
|
98
|
+
|
|
99
|
+
#### To check a password:
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
// Load hash from your password DB.
|
|
103
|
+
const samePassword = await passwordVerify(password, hash, salt) // return true
|
|
104
|
+
const notSamePassword = passwordVerify(otherPassword, hash, salt) // return false not the same password
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
passwordVerify accept 4 params:
|
|
108
|
+
|
|
109
|
+
- password to verify
|
|
110
|
+
- hashed password (saved earlier in DB or in other storage..)
|
|
111
|
+
- salt used to hash the saved password
|
|
112
|
+
- the last params is an object contain the length proprety(number of characters to extract)
|
|
113
|
+
|
|
114
|
+
Note: when use the 3th param of passwordHash then it must use it with passwordVerify too
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
const opts = { length: 16 }
|
|
118
|
+
const hash = passwordHash(password, salt, opts)
|
|
119
|
+
const samePassword = passwordVerify(password, hash, salt, opts) // return true
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## A Note on Rounds
|
|
123
|
+
|
|
124
|
+
A note about the cost. When you are hashing your data the module will go through a series of rounds to give you a secure hash. The value you submit there is not just the number of rounds that the module will go through to hash your data. The module will use the value you enter and go through `2^rounds` iterations of processing.
|
|
125
|
+
|
|
126
|
+
## Testing
|
|
127
|
+
|
|
128
|
+
If you create a pull request, tests better pass :)
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
npm install
|
|
132
|
+
npm test
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
yarn
|
|
136
|
+
yarn test
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Contributors
|
|
140
|
+
|
|
141
|
+
- [Siemah][siemah]
|
|
142
|
+
- [Km.Van][kmvan]
|
package/lib/cjs/hash.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passwordHash = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
/**
|
|
7
|
+
* Hash a password
|
|
8
|
+
* @param password
|
|
9
|
+
* @param salt
|
|
10
|
+
* @param options
|
|
11
|
+
* @version 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
const passwordHash = (password, salt, options = constants_1.PHOD) => {
|
|
14
|
+
const type = 'base64';
|
|
15
|
+
if (password.length < 1) {
|
|
16
|
+
return new Error(`Password is empty`);
|
|
17
|
+
}
|
|
18
|
+
if (salt.length < 1) {
|
|
19
|
+
return new Error(`Salt is empty`);
|
|
20
|
+
}
|
|
21
|
+
if (options.length < 1) {
|
|
22
|
+
return new Error(`Length must be greater than 0`);
|
|
23
|
+
}
|
|
24
|
+
return ((0, crypto_1.scryptSync)(password, salt, options.length)
|
|
25
|
+
?.toString(type)
|
|
26
|
+
?.substring(0, options.length) || new Error(`Error hashing password`));
|
|
27
|
+
};
|
|
28
|
+
exports.passwordHash = passwordHash;
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HashAlgoProps = exports.HASH_ALGO = exports.PHOD = exports.generateSalt = exports.passwordVerify = exports.passwordHash = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
Object.defineProperty(exports, "HASH_ALGO", { enumerable: true, get: function () { return constants_1.HASH_ALGO; } });
|
|
6
|
+
Object.defineProperty(exports, "PHOD", { enumerable: true, get: function () { return constants_1.PHOD; } });
|
|
7
|
+
const hash_1 = require("./hash");
|
|
8
|
+
Object.defineProperty(exports, "passwordHash", { enumerable: true, get: function () { return hash_1.passwordHash; } });
|
|
9
|
+
const salt_1 = require("./salt");
|
|
10
|
+
Object.defineProperty(exports, "generateSalt", { enumerable: true, get: function () { return salt_1.generateSalt; } });
|
|
11
|
+
const typings_1 = require("./typings");
|
|
12
|
+
Object.defineProperty(exports, "HashAlgoProps", { enumerable: true, get: function () { return typings_1.HashAlgoProps; } });
|
|
13
|
+
const verify_1 = require("./verify");
|
|
14
|
+
Object.defineProperty(exports, "passwordVerify", { enumerable: true, get: function () { return verify_1.passwordVerify; } });
|
package/lib/cjs/salt.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateSalt = void 0;
|
|
4
|
+
const typings_1 = require("./typings");
|
|
5
|
+
const generateSalt = async (length = 1, algo = typings_1.HashAlgoProps.sha256) => {
|
|
6
|
+
const type = 'base64';
|
|
7
|
+
const crypto = await Promise.resolve().then(() => require('crypto'));
|
|
8
|
+
if (length < 1) {
|
|
9
|
+
return new Error(`Length must be greater than 0`);
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
const hash = crypto.createHash(algo);
|
|
13
|
+
const data = crypto.randomBytes(length).toString(type);
|
|
14
|
+
hash.update(data);
|
|
15
|
+
return hash.digest(type);
|
|
16
|
+
}
|
|
17
|
+
catch (e) {
|
|
18
|
+
return new Error(e.message);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.generateSalt = generateSalt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/constants.ts","../../src/typings.ts","../../src/hash.ts","../../src/salt.ts","../../src/verify.ts","../../src/index.ts","../../node_modules/.pnpm/@babel+types@7.17.0/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@types+babel__generator@7.6.4/node_modules/@types/babel__generator/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.17.9/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../node_modules/.pnpm/@types+babel__traverse@7.17.0/node_modules/@types/babel__traverse/index.d.ts","../../node_modules/.pnpm/@types+babel__core@7.1.19/node_modules/@types/babel__core/index.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.4/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/types.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@27.5.1/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/@types+jest@27.4.1/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+json5@0.0.29/node_modules/@types/json5/index.d.ts","../../node_modules/.pnpm/@types+prettier@2.6.0/node_modules/@types/prettier/index.d.ts","../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"38222d8439de3d546582f99cc5bc30978d8d9858fe5871fe9ca6fe1235e19b4b","833b2d6d632f867e292209a08e4e9639a1f94c986b12f81a2a5735106b91c61a","31530ec319fcff35f4505d1c12102662ac9adc518fbdff95b76b147061f3fa38","adfb45f83560975f1eb1b6922012c19036c17a2a6c37b84c6c1b5ed03377b3d6","9c52ee6013c37ff764221a2f8c611211a5afab91582117292dbf6239445704c2","19e0032f649ce4d5a1f0cdc148fd3da0baffbabf0d10a088735907585b8158ee","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","159bda82b67a7aa30cf7dcf0110cad83bcc6620396830efd470890f0caa6c9c0","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"e5979905796fe2740d85fbaf4f11f42b7ee1851421afe750823220813421b1af",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5b30f550565fd0a7524282c81c27fe8534099e2cd26170ca80852308f07ae68d","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","787e96225b2a4c37625e3bdaa7b3e3b1fa0a24f067a494ac0e6aaa23be4752e4","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","063f53ff674228c190efa19dd9448bcbd540acdbb48a928f4cf3a1b9f9478e43","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"287b21dc1d1b9701c92e15e7dd673dfe6044b15812956377adffb6f08825b1bc","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","429b6df7d7b94389bd42cfdf39bccea903acd3628498cec6172302801fbeac89","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"module":1,"newLine":1,"noEmitOnError":true,"noImplicitAny":false,"noImplicitReturns":false,"noImplicitThis":false,"noUnusedLocals":true,"outDir":"./","skipLibCheck":true,"sourceMap":false,"strict":true,"strictNullChecks":true,"suppressImplicitAnyIndexErrors":true,"target":99},"fileIdsList":[[56,105],[105],[56,57,58,59,60,105],[56,58,105],[78,105,112],[105,114],[105,115],[105,120,125],[62,105],[65,105],[66,71,105],[67,77,78,85,94,104,105],[67,68,77,85,105],[69,105],[70,71,78,86,105],[71,94,101,105],[72,74,77,85,105],[73,105],[74,75,105],[76,77,105],[77,105],[77,78,79,94,104,105],[77,78,79,94,105],[105,109],[80,85,94,104,105],[77,78,80,81,85,94,101,104,105],[80,82,94,101,104,105],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],[77,83,105],[84,104,105],[74,77,85,94,105],[86,105],[87,105],[65,88,105],[89,103,105,109],[90,105],[91,105],[77,92,105],[92,93,105,107],[77,94,95,96,105],[94,96,105],[94,95,105],[97,105],[98,105],[77,99,100,105],[99,100,105],[71,85,94,101,105],[102,105],[85,103,105],[66,80,91,104,105],[71,105],[94,105,106],[105,107],[105,108],[66,71,77,79,88,94,104,105,107,109],[94,105,110],[105,130],[105,118,121],[105,118,121,122,123],[105,120],[105,117,124],[105,119],[50,51,71,105],[50,51,52,53,54,105],[51,71,105],[50,51,52,105]],"referencedMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"exportedModulesMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"semanticDiagnosticsPerFile":[58,56,61,57,59,60,113,114,115,116,126,127,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,64,111,80,81,82,112,83,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,128,129,130,131,117,118,122,124,123,121,125,120,119,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,45,9,46,47,48,1,10,49,50,52,55,53,51,54]},"version":"4.6.4"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HashAlgoProps = void 0;
|
|
4
|
+
var HashAlgoProps;
|
|
5
|
+
(function (HashAlgoProps) {
|
|
6
|
+
HashAlgoProps["sha256"] = "sha256";
|
|
7
|
+
HashAlgoProps["sha512"] = "sha512";
|
|
8
|
+
})(HashAlgoProps = exports.HashAlgoProps || (exports.HashAlgoProps = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passwordVerify = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const hash_1 = require("./hash");
|
|
6
|
+
/**
|
|
7
|
+
* check if password match hash value
|
|
8
|
+
* @param password password to check
|
|
9
|
+
* @param hash hashed value to compare in most cases hashed password saved on some storage like DB..
|
|
10
|
+
* @param salt salt used to hash the origin value in hash param
|
|
11
|
+
* @version 1.0.0
|
|
12
|
+
*/
|
|
13
|
+
const passwordVerify = (password, hash, salt, options = constants_1.PHOD) => (0, hash_1.passwordHash)(password, salt, options) === hash;
|
|
14
|
+
exports.passwordVerify = passwordVerify;
|
package/lib/esm/hash.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { scryptSync } from 'crypto';
|
|
2
|
+
import { PHOD } from './constants';
|
|
3
|
+
/**
|
|
4
|
+
* Hash a password
|
|
5
|
+
* @param password
|
|
6
|
+
* @param salt
|
|
7
|
+
* @param options
|
|
8
|
+
* @version 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
export const passwordHash = (password, salt, options = PHOD) => {
|
|
11
|
+
const type = 'base64';
|
|
12
|
+
if (password.length < 1) {
|
|
13
|
+
return new Error(`Password is empty`);
|
|
14
|
+
}
|
|
15
|
+
if (salt.length < 1) {
|
|
16
|
+
return new Error(`Salt is empty`);
|
|
17
|
+
}
|
|
18
|
+
if (options.length < 1) {
|
|
19
|
+
return new Error(`Length must be greater than 0`);
|
|
20
|
+
}
|
|
21
|
+
return (scryptSync(password, salt, options.length)
|
|
22
|
+
?.toString(type)
|
|
23
|
+
?.substring(0, options.length) || new Error(`Error hashing password`));
|
|
24
|
+
};
|
package/lib/esm/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HASH_ALGO, PHOD } from './constants';
|
|
2
|
+
import { passwordHash } from './hash';
|
|
3
|
+
import { generateSalt } from './salt';
|
|
4
|
+
import { HashAlgoProps } from './typings';
|
|
5
|
+
import { passwordVerify } from './verify';
|
|
6
|
+
export { passwordHash, passwordVerify, generateSalt, PHOD, HASH_ALGO, HashAlgoProps, };
|
package/lib/esm/salt.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HashAlgoProps } from './typings';
|
|
2
|
+
export const generateSalt = async (length = 1, algo = HashAlgoProps.sha256) => {
|
|
3
|
+
const type = 'base64';
|
|
4
|
+
const crypto = await import('crypto');
|
|
5
|
+
if (length < 1) {
|
|
6
|
+
return new Error(`Length must be greater than 0`);
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
const hash = crypto.createHash(algo);
|
|
10
|
+
const data = crypto.randomBytes(length).toString(type);
|
|
11
|
+
hash.update(data);
|
|
12
|
+
return hash.digest(type);
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
return new Error(e.message);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/constants.ts","../../src/typings.ts","../../src/hash.ts","../../src/salt.ts","../../src/verify.ts","../../src/index.ts","../../node_modules/.pnpm/@babel+types@7.17.0/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@types+babel__generator@7.6.4/node_modules/@types/babel__generator/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.17.9/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../node_modules/.pnpm/@types+babel__traverse@7.17.0/node_modules/@types/babel__traverse/index.d.ts","../../node_modules/.pnpm/@types+babel__core@7.1.19/node_modules/@types/babel__core/index.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.4/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/types.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@27.5.1/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/@types+jest@27.4.1/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+json5@0.0.29/node_modules/@types/json5/index.d.ts","../../node_modules/.pnpm/@types+prettier@2.6.0/node_modules/@types/prettier/index.d.ts","../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"38222d8439de3d546582f99cc5bc30978d8d9858fe5871fe9ca6fe1235e19b4b","833b2d6d632f867e292209a08e4e9639a1f94c986b12f81a2a5735106b91c61a","31530ec319fcff35f4505d1c12102662ac9adc518fbdff95b76b147061f3fa38","adfb45f83560975f1eb1b6922012c19036c17a2a6c37b84c6c1b5ed03377b3d6","9c52ee6013c37ff764221a2f8c611211a5afab91582117292dbf6239445704c2","19e0032f649ce4d5a1f0cdc148fd3da0baffbabf0d10a088735907585b8158ee","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","159bda82b67a7aa30cf7dcf0110cad83bcc6620396830efd470890f0caa6c9c0","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"e5979905796fe2740d85fbaf4f11f42b7ee1851421afe750823220813421b1af",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5b30f550565fd0a7524282c81c27fe8534099e2cd26170ca80852308f07ae68d","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","787e96225b2a4c37625e3bdaa7b3e3b1fa0a24f067a494ac0e6aaa23be4752e4","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","063f53ff674228c190efa19dd9448bcbd540acdbb48a928f4cf3a1b9f9478e43","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"287b21dc1d1b9701c92e15e7dd673dfe6044b15812956377adffb6f08825b1bc","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","429b6df7d7b94389bd42cfdf39bccea903acd3628498cec6172302801fbeac89","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"module":99,"newLine":1,"noEmitOnError":true,"noImplicitAny":false,"noImplicitReturns":false,"noImplicitThis":false,"noUnusedLocals":true,"outDir":"./","skipLibCheck":true,"sourceMap":false,"strict":true,"strictNullChecks":true,"suppressImplicitAnyIndexErrors":true,"target":99},"fileIdsList":[[56,105],[105],[56,57,58,59,60,105],[56,58,105],[78,105,112],[105,114],[105,115],[105,120,125],[62,105],[65,105],[66,71,105],[67,77,78,85,94,104,105],[67,68,77,85,105],[69,105],[70,71,78,86,105],[71,94,101,105],[72,74,77,85,105],[73,105],[74,75,105],[76,77,105],[77,105],[77,78,79,94,104,105],[77,78,79,94,105],[105,109],[80,85,94,104,105],[77,78,80,81,85,94,101,104,105],[80,82,94,101,104,105],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],[77,83,105],[84,104,105],[74,77,85,94,105],[86,105],[87,105],[65,88,105],[89,103,105,109],[90,105],[91,105],[77,92,105],[92,93,105,107],[77,94,95,96,105],[94,96,105],[94,95,105],[97,105],[98,105],[77,99,100,105],[99,100,105],[71,85,94,101,105],[102,105],[85,103,105],[66,80,91,104,105],[71,105],[94,105,106],[105,107],[105,108],[66,71,77,79,88,94,104,105,107,109],[94,105,110],[105,130],[105,118,121],[105,118,121,122,123],[105,120],[105,117,124],[105,119],[50,51,71,105],[50,51,52,53,54,105],[51,71,105],[50,51,52,105]],"referencedMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"exportedModulesMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"semanticDiagnosticsPerFile":[58,56,61,57,59,60,113,114,115,116,126,127,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,64,111,80,81,82,112,83,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,128,129,130,131,117,118,122,124,123,121,125,120,119,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,45,9,46,47,48,1,10,49,50,52,55,53,51,54]},"version":"4.6.4"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PHOD } from './constants';
|
|
2
|
+
import { passwordHash } from './hash';
|
|
3
|
+
/**
|
|
4
|
+
* check if password match hash value
|
|
5
|
+
* @param password password to check
|
|
6
|
+
* @param hash hashed value to compare in most cases hashed password saved on some storage like DB..
|
|
7
|
+
* @param salt salt used to hash the origin value in hash param
|
|
8
|
+
* @version 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
export const passwordVerify = (password, hash, salt, options = PHOD) => passwordHash(password, salt, options) === hash;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PasswordHashOptionProps } from './typings';
|
|
2
|
+
/**
|
|
3
|
+
* Hash a password
|
|
4
|
+
* @param password
|
|
5
|
+
* @param salt
|
|
6
|
+
* @param options
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export declare const passwordHash: (password: string, salt: string, options?: PasswordHashOptionProps) => string | Error;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HASH_ALGO, PHOD } from './constants';
|
|
2
|
+
import { passwordHash } from './hash';
|
|
3
|
+
import { generateSalt } from './salt';
|
|
4
|
+
import { HashAlgoProps } from './typings';
|
|
5
|
+
import { passwordVerify } from './verify';
|
|
6
|
+
export type { PasswordHashOptionProps } from './typings';
|
|
7
|
+
export { passwordHash, passwordVerify, generateSalt, PHOD, HASH_ALGO, HashAlgoProps, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@4.6.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/constants.ts","../../src/typings.ts","../../src/hash.ts","../../src/salt.ts","../../src/verify.ts","../../src/index.ts","../../node_modules/.pnpm/@babel+types@7.17.0/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@types+babel__generator@7.6.4/node_modules/@types/babel__generator/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.17.9/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../node_modules/.pnpm/@types+babel__traverse@7.17.0/node_modules/@types/babel__traverse/index.d.ts","../../node_modules/.pnpm/@types+babel__core@7.1.19/node_modules/@types/babel__core/index.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@17.0.30/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.4/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/types.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/.pnpm/jest-diff@27.5.1/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@27.5.1/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/@types+jest@27.4.1/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+json5@0.0.29/node_modules/@types/json5/index.d.ts","../../node_modules/.pnpm/@types+prettier@2.6.0/node_modules/@types/prettier/index.d.ts","../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"38222d8439de3d546582f99cc5bc30978d8d9858fe5871fe9ca6fe1235e19b4b","833b2d6d632f867e292209a08e4e9639a1f94c986b12f81a2a5735106b91c61a","31530ec319fcff35f4505d1c12102662ac9adc518fbdff95b76b147061f3fa38","adfb45f83560975f1eb1b6922012c19036c17a2a6c37b84c6c1b5ed03377b3d6","9c52ee6013c37ff764221a2f8c611211a5afab91582117292dbf6239445704c2","19e0032f649ce4d5a1f0cdc148fd3da0baffbabf0d10a088735907585b8158ee","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","159bda82b67a7aa30cf7dcf0110cad83bcc6620396830efd470890f0caa6c9c0","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"e5979905796fe2740d85fbaf4f11f42b7ee1851421afe750823220813421b1af",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5b30f550565fd0a7524282c81c27fe8534099e2cd26170ca80852308f07ae68d","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","787e96225b2a4c37625e3bdaa7b3e3b1fa0a24f067a494ac0e6aaa23be4752e4","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","063f53ff674228c190efa19dd9448bcbd540acdbb48a928f4cf3a1b9f9478e43","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"287b21dc1d1b9701c92e15e7dd673dfe6044b15812956377adffb6f08825b1bc","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","429b6df7d7b94389bd42cfdf39bccea903acd3628498cec6172302801fbeac89","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDeclarationOnly":true,"module":99,"newLine":1,"noEmitOnError":true,"noImplicitAny":false,"noImplicitReturns":false,"noImplicitThis":false,"noUnusedLocals":true,"outDir":"./","skipLibCheck":true,"sourceMap":false,"strict":true,"strictNullChecks":true,"suppressImplicitAnyIndexErrors":true,"target":99},"fileIdsList":[[56,105],[105],[56,57,58,59,60,105],[56,58,105],[78,105,112],[105,114],[105,115],[105,120,125],[62,105],[65,105],[66,71,105],[67,77,78,85,94,104,105],[67,68,77,85,105],[69,105],[70,71,78,86,105],[71,94,101,105],[72,74,77,85,105],[73,105],[74,75,105],[76,77,105],[77,105],[77,78,79,94,104,105],[77,78,79,94,105],[105,109],[80,85,94,104,105],[77,78,80,81,85,94,101,104,105],[80,82,94,101,104,105],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],[77,83,105],[84,104,105],[74,77,85,94,105],[86,105],[87,105],[65,88,105],[89,103,105,109],[90,105],[91,105],[77,92,105],[92,93,105,107],[77,94,95,96,105],[94,96,105],[94,95,105],[97,105],[98,105],[77,99,100,105],[99,100,105],[71,85,94,101,105],[102,105],[85,103,105],[66,80,91,104,105],[71,105],[94,105,106],[105,107],[105,108],[66,71,77,79,88,94,104,105,107,109],[94,105,110],[105,130],[105,118,121],[105,118,121,122,123],[105,120],[105,117,124],[105,119],[50,51,71,105],[50,51,52,53,54,105],[51,71,105],[50,51,52,105]],"referencedMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"exportedModulesMap":[[58,1],[56,2],[61,3],[57,1],[59,4],[60,1],[113,5],[114,2],[115,6],[116,7],[126,8],[127,2],[62,9],[63,9],[65,10],[66,11],[67,12],[68,13],[69,14],[70,15],[71,16],[72,17],[73,18],[74,19],[75,19],[76,20],[77,21],[78,22],[79,23],[64,24],[111,2],[80,25],[81,26],[82,27],[112,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,40],[96,41],[95,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,56],[128,2],[129,2],[130,2],[131,57],[117,2],[118,2],[122,58],[124,59],[123,58],[121,60],[125,61],[120,62],[119,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[50,2],[52,63],[55,64],[53,65],[51,2],[54,66]],"semanticDiagnosticsPerFile":[58,56,61,57,59,60,113,114,115,116,126,127,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,64,111,80,81,82,112,83,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,128,129,130,131,117,118,122,124,123,121,125,120,119,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,45,9,46,47,48,1,10,49,50,52,55,53,51,54]},"version":"4.6.4"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PasswordHashOptionProps } from './typings';
|
|
2
|
+
/**
|
|
3
|
+
* check if password match hash value
|
|
4
|
+
* @param password password to check
|
|
5
|
+
* @param hash hashed value to compare in most cases hashed password saved on some storage like DB..
|
|
6
|
+
* @param salt salt used to hash the origin value in hash param
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export declare const passwordVerify: (password: string, hash: string, salt: string, options?: PasswordHashOptionProps) => boolean;
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-password-lite",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Node library for hashing and verifying password like password_hash and password_verify on PHP or Pbkdf2PasswordEncoder on Spring Security(Java)",
|
|
5
|
+
"main": "lib/cjs/index.js",
|
|
6
|
+
"module": "lib/esm/index.js",
|
|
7
|
+
"types": "lib/types/index.d.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"private": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "jest --watch",
|
|
14
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|
|
15
|
+
"build:cjs": "npm run clean cjs && tsc -p config/tsconfig.cjs.json",
|
|
16
|
+
"build:esm": "npm run clean esm && tsc -p config/tsconfig.esm.json",
|
|
17
|
+
"build:types": "npm run clean types && tsc -p config/tsconfig.typings.json",
|
|
18
|
+
"clean": "node cleanup.mjs",
|
|
19
|
+
"package": "npm run build && npm pack"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/kmvan/node-password.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"nodejs",
|
|
27
|
+
"password",
|
|
28
|
+
"nodejs-password",
|
|
29
|
+
"passwordHash",
|
|
30
|
+
"passwordVerify"
|
|
31
|
+
],
|
|
32
|
+
"author": "Km.Van <kmvan.com@gmail.com>",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/kmvan/nodejs-password/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/kmvan/nodejs-password",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/jest": "^27.4.1",
|
|
40
|
+
"@types/node": "^17.0.30",
|
|
41
|
+
"eslint": "^8.14.0",
|
|
42
|
+
"eslint-config-prettier": "^8.5.0",
|
|
43
|
+
"eslint-plugin-import": "^2.26.0",
|
|
44
|
+
"eslint-plugin-node": "^11.1.0",
|
|
45
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
46
|
+
"jest": "^28.0.3",
|
|
47
|
+
"prettier": "^2.6.2",
|
|
48
|
+
"ts-jest": "^27.1.4",
|
|
49
|
+
"ts-loader": "^9.2.9",
|
|
50
|
+
"typescript": "^4.6.4"
|
|
51
|
+
}
|
|
52
|
+
}
|