Created
May 5, 2020 14:10
-
-
Save eedrummer/bcfdc12db0e47a08c8033310a78c09d6 to your computer and use it in GitHub Desktop.
De-identification secret generation for CODI
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
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