UNPKG

@mt-proto/ncore

Version:

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

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