UNPKG

mtproton

Version:

Telegram API JS (MTProto) client library for browser and nodejs

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