Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.147.67.34
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
node-forge /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
aes.js
38.12
KB
-rw-r--r--
1985-10-26 08:15
aesCipherSuites.js
8.92
KB
-rw-r--r--
1985-10-26 08:15
asn1.js
41.06
KB
-rw-r--r--
1985-10-26 08:15
baseN.js
4.95
KB
-rw-r--r--
1985-10-26 08:15
cipher.js
6.51
KB
-rw-r--r--
1985-10-26 08:15
cipherModes.js
27.94
KB
-rw-r--r--
1985-10-26 08:15
debug.js
2.03
KB
-rw-r--r--
1985-10-26 08:15
des.js
19.96
KB
-rw-r--r--
1985-10-26 08:15
ed25519.js
21.69
KB
-rw-r--r--
1985-10-26 08:15
forge.js
200
B
-rw-r--r--
1985-10-26 08:15
form.js
3.79
KB
-rw-r--r--
1985-10-26 08:15
hmac.js
3.74
KB
-rw-r--r--
1985-10-26 08:15
http.js
38.55
KB
-rw-r--r--
1985-10-26 08:15
index.all.js
366
B
-rw-r--r--
1985-10-26 08:15
index.js
679
B
-rw-r--r--
1985-10-26 08:15
jsbn.js
34.36
KB
-rw-r--r--
1985-10-26 08:15
kem.js
5.09
KB
-rw-r--r--
1985-10-26 08:15
log.js
8.96
KB
-rw-r--r--
1985-10-26 08:15
md.all.js
251
B
-rw-r--r--
1985-10-26 08:15
md.js
253
B
-rw-r--r--
1985-10-26 08:15
md5.js
7.8
KB
-rw-r--r--
1985-10-26 08:15
mgf.js
274
B
-rw-r--r--
1985-10-26 08:15
mgf1.js
1.61
KB
-rw-r--r--
1985-10-26 08:15
oids.js
5.88
KB
-rw-r--r--
1985-10-26 08:15
pbe.js
30.27
KB
-rw-r--r--
1985-10-26 08:15
pbkdf2.js
5.67
KB
-rw-r--r--
1985-10-26 08:15
pem.js
6.3
KB
-rw-r--r--
1985-10-26 08:15
pkcs1.js
8.18
KB
-rw-r--r--
1985-10-26 08:15
pkcs12.js
32.57
KB
-rw-r--r--
1985-10-26 08:15
pkcs7.js
38.35
KB
-rw-r--r--
1985-10-26 08:15
pkcs7asn1.js
11.19
KB
-rw-r--r--
1985-10-26 08:15
pki.js
2.59
KB
-rw-r--r--
1985-10-26 08:15
prime.js
8.57
KB
-rw-r--r--
1985-10-26 08:15
prime.worker.js
4.69
KB
-rw-r--r--
1985-10-26 08:15
prng.js
12.06
KB
-rw-r--r--
1985-10-26 08:15
pss.js
7.67
KB
-rw-r--r--
1985-10-26 08:15
random.js
5.31
KB
-rw-r--r--
1985-10-26 08:15
rc2.js
11.67
KB
-rw-r--r--
1985-10-26 08:15
rsa.js
53.9
KB
-rw-r--r--
1985-10-26 08:15
sha1.js
8.88
KB
-rw-r--r--
1985-10-26 08:15
sha256.js
9.35
KB
-rw-r--r--
1985-10-26 08:15
sha512.js
16.73
KB
-rw-r--r--
1985-10-26 08:15
socket.js
8.13
KB
-rw-r--r--
1985-10-26 08:15
ssh.js
7
KB
-rw-r--r--
1985-10-26 08:15
task.js
19.32
KB
-rw-r--r--
1985-10-26 08:15
tls.js
129.37
KB
-rw-r--r--
1985-10-26 08:15
tlssocket.js
6.8
KB
-rw-r--r--
1985-10-26 08:15
util.js
76.36
KB
-rw-r--r--
1985-10-26 08:15
x509.js
100.2
KB
-rw-r--r--
1985-10-26 08:15
xhr.js
21.57
KB
-rw-r--r--
1985-10-26 08:15
Save
Rename
/** * Javascript implementation of RSA-KEM. * * @author Lautaro Cozzani Rodriguez * @author Dave Longley * * Copyright (c) 2014 Lautaro Cozzani <lautaro.cozzani@scytl.com> * Copyright (c) 2014 Digital Bazaar, Inc. */ var forge = require('./forge'); require('./util'); require('./random'); require('./jsbn'); module.exports = forge.kem = forge.kem || {}; var BigInteger = forge.jsbn.BigInteger; /** * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. */ forge.kem.rsa = {}; /** * Creates an RSA KEM API object for generating a secret asymmetric key. * * The symmetric key may be generated via a call to 'encrypt', which will * produce a ciphertext to be transmitted to the recipient and a key to be * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which * will produce the same secret key for the recipient to use to decrypt a * message that was encrypted with the secret key. * * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). * @param options the options to use. * [prng] a custom crypto-secure pseudo-random number generator to use, * that must define "getBytesSync". */ forge.kem.rsa.create = function(kdf, options) { options = options || {}; var prng = options.prng || forge.random; var kem = {}; /** * Generates a secret key and its encapsulation. * * @param publicKey the RSA public key to encrypt with. * @param keyLength the length, in bytes, of the secret key to generate. * * @return an object with: * encapsulation: the ciphertext for generating the secret key, as a * binary-encoded string of bytes. * key: the secret key to use for encrypting a message. */ kem.encrypt = function(publicKey, keyLength) { // generate a random r where 1 > r > n var byteLength = Math.ceil(publicKey.n.bitLength() / 8); var r; do { r = new BigInteger( forge.util.bytesToHex(prng.getBytesSync(byteLength)), 16).mod(publicKey.n); } while(r.equals(BigInteger.ZERO)); // prepend r with zeros r = forge.util.hexToBytes(r.toString(16)); var zeros = byteLength - r.length; if(zeros > 0) { r = forge.util.fillString(String.fromCharCode(0), zeros) + r; } // encrypt the random var encapsulation = publicKey.encrypt(r, 'NONE'); // generate the secret key var key = kdf.generate(r, keyLength); return {encapsulation: encapsulation, key: key}; }; /** * Decrypts an encapsulated secret key. * * @param privateKey the RSA private key to decrypt with. * @param encapsulation the ciphertext for generating the secret key, as * a binary-encoded string of bytes. * @param keyLength the length, in bytes, of the secret key to generate. * * @return the secret key as a binary-encoded string of bytes. */ kem.decrypt = function(privateKey, encapsulation, keyLength) { // decrypt the encapsulation and generate the secret key var r = privateKey.decrypt(encapsulation, 'NONE'); return kdf.generate(r, keyLength); }; return kem; }; // TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? /** * Creates a key derivation API object that implements KDF1 per ISO 18033-2. * * @param md the hash API to use. * @param [digestLength] an optional digest length that must be positive and * less than or equal to md.digestLength. * * @return a KDF1 API object. */ forge.kem.kdf1 = function(md, digestLength) { _createKDF(this, md, 0, digestLength || md.digestLength); }; /** * Creates a key derivation API object that implements KDF2 per ISO 18033-2. * * @param md the hash API to use. * @param [digestLength] an optional digest length that must be positive and * less than or equal to md.digestLength. * * @return a KDF2 API object. */ forge.kem.kdf2 = function(md, digestLength) { _createKDF(this, md, 1, digestLength || md.digestLength); }; /** * Creates a KDF1 or KDF2 API object. * * @param md the hash API to use. * @param counterStart the starting index for the counter. * @param digestLength the digest length to use. * * @return the KDF API object. */ function _createKDF(kdf, md, counterStart, digestLength) { /** * Generate a key of the specified length. * * @param x the binary-encoded byte string to generate a key from. * @param length the number of bytes to generate (the size of the key). * * @return the key as a binary-encoded string. */ kdf.generate = function(x, length) { var key = new forge.util.ByteBuffer(); // run counter from counterStart to ceil(length / Hash.len) var k = Math.ceil(length / digestLength) + counterStart; var c = new forge.util.ByteBuffer(); for(var i = counterStart; i < k; ++i) { // I2OSP(i, 4): convert counter to an octet string of 4 octets c.putInt32(i); // digest 'x' and the counter and add the result to the key md.start(); md.update(x + c.getBytes()); var hash = md.digest(); key.putBytes(hash.getBytes(digestLength)); } // truncate to the correct key length key.truncate(key.length() - length); return key.getBytes(); }; }