mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00

* SecretRotator: New class to coordinate key rotation * express-session: Enable key rotation * Added new entry in docker.adoc * Move to own package.Removed fallback as Node 16 is now lowest node version. * Updated package-lock.json --------- Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
15 lines
No EOL
303 B
JavaScript
15 lines
No EOL
303 B
JavaScript
'use strict';
|
|
|
|
const crypto = require('crypto');
|
|
const util = require('util');
|
|
|
|
|
|
/**
|
|
* Promisified version of Node.js's crypto.hkdf.
|
|
*/
|
|
exports.hkdf = util.promisify(crypto.hkdf);
|
|
|
|
/**
|
|
* Promisified version of Node.js's crypto.randomBytes
|
|
*/
|
|
exports.randomBytes = util.promisify(crypto.randomBytes); |