Skip to content

Instantly share code, notes, and snippets.

View rayepeng's full-sized avatar
🎯
Focusing

raye peng rayepeng

🎯
Focusing
View GitHub Profile
@rayepeng
rayepeng / xxx.py
Last active March 26, 2020 09:07
[python正则表达式]#python#re
In [7]: re.findall(r'(?i)yes', "Yes,yeS,yes")
Out[7]: ['Yes', 'yeS', 'yes']
@rayepeng
rayepeng / 1_collision_2nd_preimage.py
Created September 1, 2019 05:34 — forked from hellman/1_collision_2nd_preimage.py
NSU CRYPTO 2017 - Problem 4 - FNV2 Hash
'''
Explanation at
https://drive.google.com/open?id=1gDRoulcbWfh-T6KBLwvV8g_xb7dT3Erx
'''
from sage.all import *
mod = 2**128
h0 = 144066263297769815596495629667062367629
g = 2**88 + 315