wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*! @azure/msal-node v5.1.3 2026-04-16 */
'use strict';
import { Hash } from '../utils/Constants.mjs';
import crypto from 'crypto';
 
/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */
class HashUtils {
    /**
     * generate 'SHA256' hash
     * @param buffer
     */
    sha256(buffer) {
        return crypto.createHash(Hash.SHA256).update(buffer).digest();
    }
}
 
export { HashUtils };
//# sourceMappingURL=HashUtils.mjs.map