asp-identity-pw
Version:
Password hash and validation library that is compatible with the default ASP.NET Core Identity framework.
21 lines (20 loc) • 895 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KdPrfDigestMap = exports.KeyDerivationPrf = void 0;
/**
* Specifies the PRF which should be used for the key derivation alogrithm.
*/
var KeyDerivationPrf;
(function (KeyDerivationPrf) {
/** The HMAc algorithm (RFC 2104) using the SHA-1 hash function (FIPS 180-4). */
KeyDerivationPrf[KeyDerivationPrf["HMAC_SHA1"] = 0] = "HMAC_SHA1";
/** The HMAC algorithm (RFC 2104) using the SHA-256 hash function (FIPS 180-4) */
KeyDerivationPrf[KeyDerivationPrf["HMAC_SHA256"] = 1] = "HMAC_SHA256";
})(KeyDerivationPrf = exports.KeyDerivationPrf || (exports.KeyDerivationPrf = {}));
/**
* Returns the string representation of the specified key derivation prf.
*/
exports.KdPrfDigestMap = {
[KeyDerivationPrf.HMAC_SHA1]: 'sha1',
[KeyDerivationPrf.HMAC_SHA256]: 'sha256',
};