UNPKG

bcryption

Version:

Bcryption is a simple digital encription algorithm, is stable for javascript

22 lines (16 loc) 2.13 kB
/* const bcryption = require('bcryption') bcryption.verify( "hailemelekot12345", // password "04570b03002a03c4983a", // generated hex. may be from your database "Secret" //Secret from your .env variable ).then((res) => { console.log(res) // Return true or false }) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can contact me at:- Email: Hailemelekotmelakie1991@gmail.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ const _0x2d8bd9 = _0x51d6; (function (_0x44a3d8, _0x5a568d) { const _0x2319e3 = _0x51d6, _0x5efcd2 = _0x44a3d8(); while (!![]) { try { const _0x6eb510 = parseInt(_0x2319e3(0x1f8)) / 0x1 + parseInt(_0x2319e3(0x1f4)) / 0x2 * (-parseInt(_0x2319e3(0x1fb)) / 0x3) + parseInt(_0x2319e3(0x1fc)) / 0x4 * (parseInt(_0x2319e3(0x1f7)) / 0x5) + -parseInt(_0x2319e3(0x1f9)) / 0x6 * (-parseInt(_0x2319e3(0x1f1)) / 0x7) + parseInt(_0x2319e3(0x1fa)) / 0x8 * (-parseInt(_0x2319e3(0x1fe)) / 0x9) + -parseInt(_0x2319e3(0x1f6)) / 0xa * (parseInt(_0x2319e3(0x1f2)) / 0xb) + parseInt(_0x2319e3(0x1f5)) / 0xc; if (_0x6eb510 === _0x5a568d) break; else _0x5efcd2['push'](_0x5efcd2['shift']()); } catch (_0x672075) { _0x5efcd2['push'](_0x5efcd2['shift']()); } } }(_0x4dda, 0x97ad8)); function _0x51d6(_0x12d50c, _0x6a4b46) { const _0x4ddad9 = _0x4dda(); return _0x51d6 = function (_0x51d654, _0x1be646) { _0x51d654 = _0x51d654 - 0x1f1; let _0x5b1eb6 = _0x4ddad9[_0x51d654]; return _0x5b1eb6; }, _0x51d6(_0x12d50c, _0x6a4b46); } function _0x4dda() { const _0x2c61aa = ['then', '24111FBKHyO', '1176GcndeK', '65978MUEnhX', 'exports', '146CMlsnS', '5442192fUUVQQ', '1730jEPUSj', '8145rFRsva', '12590wHpkWU', '34806tsjpaM', '88hcZiQK', '22422oGoEjg', '1948aVpwOM']; _0x4dda = function () { return _0x2c61aa; }; return _0x4dda(); } const enc = require('./enc'); async function verify(_0x5ebeb2, _0x19879b, _0x540ced) { return new Promise(async (_0x15f375, _0x5c667d) => { const _0x391d09 = _0x51d6; await enc(_0x5ebeb2, _0x540ced)[_0x391d09(0x1fd)](async _0x86c243 => { _0x86c243 === _0x19879b ? _0x15f375(!![]) : _0x15f375(![]); }); }); } module[_0x2d8bd9(0x1f3)] = verify;