30 lines
804 B
JavaScript
30 lines
804 B
JavaScript
/*! @azure/msal-node v2.13.0 2024-08-13 */
|
|
'use strict';
|
|
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var Constants = require('../utils/Constants.cjs');
|
|
var crypto = require('crypto');
|
|
|
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
|
|
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
|
|
/*
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
class HashUtils {
|
|
/**
|
|
* generate 'SHA256' hash
|
|
* @param buffer
|
|
*/
|
|
sha256(buffer) {
|
|
return crypto__default["default"].createHash(Constants.Hash.SHA256).update(buffer).digest();
|
|
}
|
|
}
|
|
|
|
exports.HashUtils = HashUtils;
|
|
//# sourceMappingURL=HashUtils.cjs.map
|