Skip to content

Instantly share code, notes, and snippets.

@HyShai
HyShai / ProtocolReplacer
Last active August 29, 2015 13:56
protocol replacer bookmarklet that works in chrome (iOS) - useful for trying new openURL schemes
//have to wait for the keyboard for the url bar to leave before triggering the keyboard for the prompt, hence the timeout
javascript:setTimeout(function(){window.location=document.location.href.replace(document.location.protocol,prompt("Enter New Protocol: ("+document.location.protocol+")")+":")},1000)
import hashlib
import pbkdf2 #simple-pbkdf2 module (have to download)
t = pbkdf2.pbkdf2_bin('this is a long string password', 'hello@example.com', 5000, 32, hashlib.sha256)