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 lzma
import pickle import pickle
def pickle_write_encrypted(df, fname, salt=None): def pickle_write_encrypted(df, fname):
""" """
Write the DataFrame to an encrypted file Write the DataFrame to an encrypted file
@ -33,7 +33,6 @@ def pickle_write_encrypted(df, fname, salt=None):
""" """
# Get random salt # Get random salt
if salt is None:
salt = get_random_bytes(16) salt = get_random_bytes(16)
# Serialise Pandas and compress # Serialise Pandas and compress