PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/cryptography/src/primitive
Просмотр файла: sha256.js
import crypto from "crypto";
/**
* @param {Uint8Array} data
* @returns {Promise<Uint8Array>}
*/
// eslint-disable-next-line @typescript-eslint/require-await
export async function digest(data) {
// fallback to trying node-crypto which could be polyfilled by the browser environment
return crypto.createHash("sha256").update(data).digest();
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!