- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
sudo nano ~/.bash_profile
- Add
export PATH=/path/to/depot_tools:"$PATH"
(it's important that depot_tools comes first here)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
--theme-color: #4f46e5; | |
} | |
html.dark { | |
--theme-color: #818cf8; | |
} | |
:root { | |
--sidebar-width: 20rem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import struct | |
import sqlite3 | |
def md5hash(buf): | |
return hashlib.md5(buf.encode("utf-16")[2:]).digest() | |
def md5cmp(buf, postfix, a1, a2, a3, a4): | |
if len(buf) < postfix: | |
return False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Explanation at | |
https://drive.google.com/open?id=1gDRoulcbWfh-T6KBLwvV8g_xb7dT3Erx | |
''' | |
from sage.all import * | |
mod = 2**128 | |
h0 = 144066263297769815596495629667062367629 | |
g = 2**88 + 315 |