Skip to content

Instantly share code, notes, and snippets.

@simform-solutions
Last active September 20, 2017 06:50
Show Gist options
  • Save simform-solutions/c5a1f934a98702086e7e5e973fdb3640 to your computer and use it in GitHub Desktop.
Save simform-solutions/c5a1f934a98702086e7e5e973fdb3640 to your computer and use it in GitHub Desktop.
# Creates a unique file name by taking the first 12 characters of the sha256 hash from a seed
def create_file_name():
seed_hash = create_seed_hash(seed)
file_name = seed_hash[:12]
file_name += ".txt"
return file_name
# The login screen; Will make sure that only a valid seed is enterd
def log_in():
raw_seed = "INSERT YOUR SEED" #insert your seed here
raw_seed = raw_seed.upper()
raw_seed = list(raw_seed)
allowed = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ9")
seed = ""
i = 0
while i < len(raw_seed) and i < 81:
char = raw_seed[i]
if char not in allowed:
char = "9"
seed += char
else:
seed += str(char)
i += 1
while len(seed) < 81:
seed += "9"
create_seed_hash(seed)
return seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment