Decrypt file inline with given key.
The given key must be the same that was returned by encrypt_file_inline.
Parameters: |
---|
Stream decrypted file with given key.
The given key must be the same that was returned by encrypt_file_inline.
Parameters: | |
---|---|
Returns: | A generator that streams decrypted file chunks. |
Return type: | generator |
Encrypt file inline, with an optional passphrase.
If you set the passphrase to None, a default is used. This will make you vulnerable to confirmation attacks and learn-partial-information attacks.
Parameters: |
|
---|---|
Returns: | The key required to decrypt the file. |
Return type: | str |
Encrypt file inline.
Encrypts a given file with the given key, and replaces it directly without any extra space requirement.
Parameters: |
---|
Generate encrypted file with given key.
This generator function reads the file in chunks and encrypts them using AES-CTR, with the specified key.
Parameters: | |
---|---|
Returns: | A generator that produces encrypted file chunks. |
Return type: | generator |
Calculate convergent encryption key.
This takes a filename and an optional passphrase. If no passphrase is given, a default is used. Using the default passphrase means you will be vulnerable to confirmation attacks and learn-partial-information attacks.
Parameters: |
|
---|---|
Returns: | A convergent encryption key. |
Return type: | str |