UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

15 lines 572 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CryptoUtils = void 0; const Pbkdf2_1 = require("./Pbkdf2"); class CryptoUtils { static getPasswordHash(password) { return CryptoUtils.passwordHashAlgorithm.getSaltedHash(password); } static isPasswordMatch(storedValue, inputPassword) { return CryptoUtils.passwordHashAlgorithm.isHashMatch(storedValue, inputPassword); } } exports.CryptoUtils = CryptoUtils; CryptoUtils.passwordHashAlgorithm = new Pbkdf2_1.Pbkdf2(); //# sourceMappingURL=CryptoUtils.js.map