Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python store salt in csv

import os, base64

salt = os.urandom(64)

# convert to a base64 string:
s = base64.b64encode(storage).decode('utf-8')

print(s) # <-- string you can save this to a file

# after reading it back from a file convert back to bytes
the_bytes = base64.b64decode(s)

the_bytes == salt
# True
Source by 47.112.232.56 #
 
PREVIOUS NEXT
Tagged: #python #store #salt #csv
ADD COMMENT
Topic
Name
8+1 =