We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377ddf4 commit e063502Copy full SHA for e063502
basic256.js
@@ -10,6 +10,12 @@ HMAC_ALGORITHM = 'SHA256';
10
KEY = savedKeys.key; // Use the automated script.
11
HMAC_KEY = savedKeys.hmac_key; // Use the automated script.
12
13
+function randomValueHex (len) {
14
+ return crypto.randomBytes(Math.ceil(len/2))
15
+ .toString('hex') // convert to hexadecimal format
16
+ .slice(0,len); // return required number of characters
17
+};
18
+
19
var constant_time_compare = function (val1, val2) {
20
var sentinel;
21
0 commit comments