Skip to content

Instantly share code, notes, and snippets.

View Dewep's full-sized avatar

Maigret Aurélien Dewep

View GitHub Profile
@Dewep
Dewep / readme.md
Created July 28, 2015 09:26
Number of messages of a messenger conversation

Go on Graph API Explorer.

Select the FQL Query option, and write this type of request:

SELECT message_count FROM thread WHERE thread_id = 729596603755180
{
 "data": [
@Dewep
Dewep / Hangout-emoticon-shortcuts.json
Last active August 29, 2015 14:24
Hangout emoticon shortcuts
Toa = {
"(=^..^=)": 128568,
"(=^.^=)": 128568,
"(N)": 128078,
"(Y)": 128077,
"(]:{": 128115,
"(n)": 128078,
"(y)": 128077,
"-<@%": 128029,
"-_-": 128529,
@Dewep
Dewep / aes-128-cbc
Last active March 30, 2017 19:56
aes-128-cbc
root@toto:~# echo -n 0000000000000000 | xxd -g 0
0000000: 30303030303030303030303030303030 0000000000000000
root@toto:~# echo -n 1234567890 | openssl aes-128-cbc -e -K 30303030303030303030303030303030 -iv 00000000000000000000000000000000 | md5sum
aa8301604be724a92e1f223e14caea68 -
root@toto:~# python2 -c 'import sys, Crypto.Cipher.AES as A; sys.stdout.write(A.new("0"*16, A.MODE_CBC, "\0"*16).encrypt("1234567890\6\6\6\6\6\6"))' | md5sum
aa8301604be724a92e1f223e14caea68 -