Linux bear.hostingplus.cl 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
LiteSpeed
Server IP : 192.140.57.17 & Your IP : 216.73.216.106
Domains :
Cant Read [ /etc/named.conf ]
User : explo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
bitninja-dispatcher /
node_modules /
ebg13 /
keys /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
365
B
-rw-r--r--
2026-02-18 13:02
index.spec.js
1.15
KB
-rw-r--r--
2026-02-18 13:02
Save
Rename
const keys = require('./index'); describe('keys', () => { describe('when passing a seed', () => { it('should return the seed as the private key', () => { const seed = 12; const expected = 12; const actual = keys.generate(seed); expect(actual.private).toBe(expected); }); it('should return the seed\'s 26 complement as the public key', () => { const seed = 12; const expected = 14; const actual = keys.generate(seed); expect(actual.public).toBe(expected); }); }); describe('when not passing a seed', () => { it('random public and private keys should add 26', () => { const actual = keys.generate(); expect(actual.private + actual.public).toBe(26); }); it('should not return 0, 26 or 13 as a key', () => { for (let i = 0; i < 50; i++) { const actual = keys.generate(); expect(actual.private).not.toBe(0); expect(actual.private).not.toBe(13); expect(actual.private).not.toBe(26); expect(actual.public).not.toBe(0); expect(actual.public).not.toBe(13); expect(actual.public).not.toBe(26); } }); }); });