Encrypting a file

Encryption is a new feature as of 1.0.0!

To use encryption, first type pip install pyntree[encryption] to install the necessary dependencies.

To encrypt your data, simply specify a password parameter for the Node when saving or loading.

db = Node('encrypted.pyn', password='password')

Optionally, you can also specify a salt:

db = Node('encrypted.pyn', password='password', salt=b'random_salt')

Revision #2
Created 29 March 2023 04:06:30 by jvadair
Updated 29 March 2023 04:11:48 by jvadair