Skip to content

Commit

Permalink
fix: key
Browse files Browse the repository at this point in the history
  • Loading branch information
phoqe committed Jun 6, 2021
1 parent 7da5b15 commit eb9b6ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crypto/win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@ const DEC_ALGO = "aes-256-gcm";
* @returns {Buffer}
*/
const createEncryptionKey = () => {
return hkdf(KEY_SECRET, KEY_LEN, { salt: KEY_SALT, info: "info" });
return hkdf(KEY_SECRET, KEY_LEN, {
salt: KEY_SALT,
info: KEY_INFO,
hash: KEY_HASH,
});
};

/**
*
* @param {string} ciphertext
* @returns {string}
*/
const decryptWithDpApi = (ciphertext) => {};

/**
*
* @param {object} browser
Expand Down

0 comments on commit eb9b6ea

Please sign in to comment.