UNPKG

@mt-proto/ncore

Version:

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

8 lines (5 loc) 192 B
const crypto = require('crypto'); async function PBKDF2(password, salt, iterations) { return crypto.pbkdf2Sync(password, salt, iterations, 64, 'sha512'); } module.exports = PBKDF2;