This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void compute_session_keys(uint8_t encryptkey[AES128_KEY_LEN], | |
uint8_t IV[AES128_KEY_LEN], | |
uint8_t integrity[AES128_KEY_LEN], | |
uint8_t master_key[AES128_KEY_LEN], | |
uint8_t encryption_salt[8]){ | |
uint8_t long_encryptkey[SHA256_DIGEST_LEN]; | |
uint8_t long_IV[SHA256_DIGEST_LEN]; | |
uint8_t long_integrity[SHA256_DIGEST_LEN]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var cryptoKey = raw SHA256 Hash | |
function decypherPayload(payload) { | |
/* inputs */ | |
var t = payload.split(","); | |
var C = t[0], | |
IV = t[1], | |
Hm = t[2]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* -( nemo2.c )- | |
* | |
* 2015 | |
* | |
*/ | |
#include <stdio.h> | |
#include <sys/mman.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.safe = function() { | |
var s = this.toString().split("/"), r = []; | |
for(var a in s) { | |
if(s[a] != "..") | |
r.push(s[a]); | |
} | |
r = r.join("/"); | |
var i = r.indexOf("\0"); | |
if(i > 0) | |
r = r.substr(0, i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto'); | |
function proofOfSpace(password, salt) { | |
var iterate = 500000; // gives ~30Mo on sha256 | |
var series = []; | |
var spaceSize = 0; | |
console.log("Generating POS password"); | |
var last = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* PYSA Website ciphered download links reversed | |
* http://pysa2bitc5ldeyfak4seeruqymqs4sj5wt5qkcq7aoyg4h2acqieywad.onion | |
*/ | |
function addClass(className, element) { | |
elements = querySelectorAll(className); | |
console.log(elements); | |
for (var seed = 0; seed < elements['length']; seed++) { | |
elements[seed]['classList']['add'](element) | |
} |