'''Plugin to protect gallery by encrypting image files using a password.
Options:
Options::
encrypt_options={
'password':'password',
'ask_password':False,
@ -50,7 +51,11 @@ BUILT, or there will be inconsistency in encrypted files and viewers will not be
toseesomeoftheimagesanymore.
'''
importos,random,string,logging,pickle
importos
importrandom
importstring
importlogging
importpickle
fromioimportBytesIO
fromitertoolsimportchain
@ -207,7 +212,7 @@ def encrypt_files(settings, config, cache, albums, progressbar_target):
logger.warning("Original files are symlinked! Set encrypt_options[\"encrypt_symlinked_originals\"] to True to force encrypting them, if this is what you want.")