UNPKG

@mt-proto/ncore

Version:

Telegram API JS (MTProto) client library for Node.js and browser

6 lines (4 loc) 133 B
async function SHA256(data) { return new Uint8Array(await crypto.subtle.digest('SHA-256', data)); } module.exports = SHA256;