Created
February 12, 2013 10:51
-
-
Save amintos/4761533 to your computer and use it in GitHub Desktop.
Method generating a string of given length which is its own prefix in base64 encoding.
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
def base64_fixpoint(prefix_len): | |
s = 'rofl' | |
t = 'lol' | |
while s != t: | |
s = t | |
t = s.encode("base64")[:prefix_len] | |
return t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python3: