Disallow specifying a salt for pickle_write_encrypted
This commit is contained in:
parent
12a0707998
commit
3626d3037f
@ -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,8 +33,7 @@ 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
|
||||||
pickle_pt = io.BytesIO()
|
pickle_pt = io.BytesIO()
|
||||||
|
Loading…
Reference in New Issue
Block a user