Skip to content

Instantly share code, notes, and snippets.

@eedrummer
Created May 5, 2020 14:10
Show Gist options
  • Save eedrummer/bcfdc12db0e47a08c8033310a78c09d6 to your computer and use it in GitHub Desktop.
Save eedrummer/bcfdc12db0e47a08c8033310a78c09d6 to your computer and use it in GitHub Desktop.
De-identification secret generation for CODI
from secrets import token_hex
secret_bit_length = 128
deidentification_secret = token_hex(secret_bit_length)
with open('deidentification_secret.txt', 'w', newline='') as secret_file:
secret_file.write(deidentification_secret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment