Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import requests
import sys
def encrypt(word):
# from the javascript
phrase = "e5dl12XYVggihggafXWf0f2YSf2Xngd1"
# (a[2 * n] = (240 & t[n % t.length].charCodeAt()) | ((15 & r) ^ (15 & t[n % t.length].charCodeAt()))), (a[2 * n + 1] = (240 & t[n % t.length].charCodeAt()) | ((r >> 4) ^ (15 & t[n % t.length].charCodeAt())));
a = []