TheVirtualBrain:

TheDocumentationwebsite.

Table Of Contents

Previous topic

h5 Package

Next topic

file Package

This Page

encryption Package

data_encryption_handler

class tvb.storage.h5.encryption.data_encryption_handler.DataEncryptionHandler[source]

Bases: builtins.object

CRYPTO_PASS = 'CRYPTO_PASS'
ENCRYPTED_FOLDER_SUFFIX = '_encrypted'
KEYS_FOLDER = '.storage-keys'
check_and_delete(*args, **kw)[source]

New function will actually write the Lock.

static compute_encrypted_folder_path(current_project_folder)[source]
dec_queue_count(*args, **kw)[source]

New function will actually write the Lock.

dec_running_op_count(*args, **kw)[source]

New function will actually write the Lock.

static encryption_enabled()[source]
file_helper = <tvb.storage.h5.file.files_helper.FilesHelper object at 0x7f0132117090>
inc_project_usage_count(*args, **kw)[source]

New function will actually write the Lock.

inc_running_op_count(*args, **kw)[source]

New function will actually write the Lock.

is_in_usage(project_folder)[source]
linked_projects = {}
lock = <unlocked _thread.lock object at 0x7f01321df660>
marked_for_delete = set()
static project_key_path(project_name)[source]
push_folder_to_sync(project_folder)[source]
queue_elements_count = {}
running_operations = {}
set_project_active(project, linked_dt)[source]
set_project_inactive(project)[source]
static startup_cleanup()[source]
static sync_folders(folder)[source]
sync_project_queue = <queue.Queue object at 0x7f013213f210>
users_project_usage = {}
class tvb.storage.h5.encryption.data_encryption_handler.DataEncryptionHandlerMeta[source]

Bases: builtins.type

Metaclass used to generate the singleton instance

class tvb.storage.h5.encryption.data_encryption_handler.FoldersQueueConsumer(group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)[source]

Bases: threading.Thread

mark_stop()[source]
marked_stop = False
run()[source]
was_processing = False
exception tvb.storage.h5.encryption.data_encryption_handler.InvalidStorageEncryptionException(message)[source]

Bases: tvb.basic.exceptions.TVBException

Exception thrown when encryption storage cannot be allowed.

encryption_handler

class tvb.storage.h5.encryption.encryption_handler.EncryptionHandler(dir_gid)[source]

Bases: builtins.object

cleanup_encryption_handler()[source]
decrypt_files_to_dir(files, dir)[source]

Given a list of encrypted files, decrypt them, then move plain files to the location specified by :param dir

decrypt_results_to_dir(dir, from_subdir)[source]

Having an already encrypted directory, decrypt all files, then move plain files to the location specified by :param dir

encrypt_inputs(files_to_encrypt, subdir)[source]

Receive a list with all files to encrypt. Prepare encryption directory and encrypt each file. Return a list with all files from the encrypted directory.

encrypted_dir_name_regex = 'cipher_{}'
encrypted_suffix = '.aes'
static generate_random_password(pass_size)[source]
get_encrypted_dir()[source]
get_password_file()[source]