UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

14 lines 539 B
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project // // SPDX-License-Identifier: Apache-2.0 import { Pbkdf2 } from './Pbkdf2.js'; export class CryptoUtils { static passwordHashAlgorithm = new Pbkdf2(); static getPasswordHash(password) { return CryptoUtils.passwordHashAlgorithm.getSaltedHash(password); } static isPasswordMatch(storedValue, inputPassword) { return CryptoUtils.passwordHashAlgorithm.isHashMatch(storedValue, inputPassword); } } //# sourceMappingURL=CryptoUtils.js.map