Last active
January 4, 2018 05:51
-
-
Save qiantao94/6047a33d7c3f11701453bcab2fc2980d to your computer and use it in GitHub Desktop.
Generate Android Proguard Dictionary
This file contains 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 string | |
import random | |
def rand_string(length): | |
return ''.join(random.choice( | |
string.ascii_lowercase + string.ascii_uppercase + string.digits) | |
for i in range(length) | |
) | |
if __name__ == '__main__': | |
FILE = open("proguard-dictionary.txt", 'w') | |
WORD_LINES = 40 | |
FILE.write("#proguard dictionary\n\n") | |
for i in range(1, WORD_LINES): | |
FILE.write(rand_string(2)+"\n") | |
FILE.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment