Disallow specifying a salt for pickle_write_encrypted

This commit is contained in:
RunasSudo 2022-10-18 17:57:53 +11:00
parent 12a0707998
commit 3626d3037f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -23,7 +23,7 @@ import io
import lzma
import pickle
def pickle_write_encrypted(df, fname, salt=None):
def pickle_write_encrypted(df, fname):
"""
Write the DataFrame to an encrypted file
@ -33,8 +33,7 @@ def pickle_write_encrypted(df, fname, salt=None):
"""
# Get random salt
if salt is None:
salt = get_random_bytes(16)
salt = get_random_bytes(16)
# Serialise Pandas and compress
pickle_pt = io.BytesIO()