Skip to content

Instantly share code, notes, and snippets.

View danvctr's full-sized avatar

Dan Victor danvctr

View GitHub Profile
Dear CloudFlare Team,
Thanks for the great Anti-DDOS protection service. A lot of companies
started to use CloudFlare last years and I hope that this business
is going very well.
However, I'm very tired to puzzle out CAPTCHAs on every web-site which is
"protected" by CloudFlare service. I'm definitely not a bot and I have no idea
why I should **spent my own time** to work as a monkey for Google for free.
anonymous
anonymous / cryptovisual_qr_encoder
Created August 7, 2014 18:07
create two random-looking images that reveal a QR code when superposed
#!/bin/bash
# This script reads text from stdin, generates its QR code and splits it into two visual cryptographic images. Both images appear random and have as many whites as blacks. Only when print on transparent film (or extremely thin paper) and superposed, the ciphered qrcode appears as gray/black dots.
# We use the program "qrencode" to generate a QR at an average 7% error-correction rate ("low" quality; the lowest available). We create then a random array and we visual-XOR it with the QR code to retrieve the ciphered code. Only the random array (nonce or one-time pad) and the ciphered array are recorded, and only when both are superposed they reveal the QR code.
# The visual-cryptographic scheme used is inspired of http://leemon.com/crypto/VisualCrypto.html . It transforms 0s and 1s into diagonal 2x2 squares (01\10 and 10\01). The visual XOR either repeats (gray superposition; corresponding to a white dot) or flips (black superposition; corresponding to a black dot), following the QR code.
# Security
@matt-curtis
matt-curtis / gist:b92dc5987a9c423968de
Last active May 18, 2018 18:11
Google Apps Scripts - Loading external libraries/javascript
/*
1.) Add any extra libraries as "html" files (New > HTML File)
*/
/* 2.) */ eval(HtmlService.createTemplateFromFile("JSLib").getRawContent()); /* exclude the .html extension */
@fcicq
fcicq / mywallet.py
Created August 16, 2012 08:49 — forked from anfedorov/mywallet.py
tools to decrypt blockchain.info wallet.json.aes
#!/usr/bin/env python
import base64, hashlib, hmac, json, sys, getpass
from Crypto.Cipher import AES
from Crypto.Hash import RIPEMD, SHA256
base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def prompt(p):
return getpass.getpass(p + ": ")