Fast File Encryption
======================
The *Fast File Encryption* is an open, very simple and well-designed file encryption solution for medium and large files (up to terabytes). It uses asymmetric RSA keys to encrypt and decrypt the files, in order to store the public key for encryption on the server, with no worries.
Quick Usage Overview
--------------------
Create a new key pair:
.. code-block:: pycon
>>> import fast_file_encryption as ffe
>>> from pathlib import Path
>>> ffe.save_key_pair(public_key=Path('public.pem'), private_key=Path('private.pem'))
Encrypt a file:
.. code-block:: pycon
>>> original_file = Path('original_file.txt')
>>> original_file.write_text('Hello world!')
>>> encryptor = ffe.Encryptor(ffe.read_public_key(Path('public.pem')))
>>> encrypted_file = Path('encrypted_file.ffe')
>>> encryptor.copy_encrypted(original_file, encrypted_file, meta={'my-meta': 1}, add_source_metadata=True)
Decrypt a file and read its meta data:
.. code-block:: pycon
>>> decryptor = ffe.Decryptor(ffe.read_private_key(Path('private.pem')))
>>> decryptor.load_decrypted(encrypted_file)
b'Hello world!'
>>> decryptor.read_metadata(encrypted_file)
{'my-meta': 1, 'file_path': '.../original_file.txt', ...}
Installation
------------
Install *Fast File Encryption* using ``pip``:
.. code-block:: console
$ pip install fast_file_encryption
Documentation
-------------
You find all details about the library, it's design and file format in the `documentation`_.
License
-------
Copyright © 2021-2024 Tobias Erbsland https://erbsland.dev/ and EducateIT GmbH https://educateit.ch/
According to the copyright terms specified in the file "COPYRIGHT.md".
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
.. _`documentation`: https://erbsland-dev.github.io/fast-file-encryption/
Raw data
{
"_id": null,
"home_page": "https://github.com/erbsland-dev/fast-file-encryption",
"name": "fast-file-encryption",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "Erbsland DEV",
"author_email": "info@erbsland.dev",
"download_url": "https://files.pythonhosted.org/packages/be/9c/042e457bac53efbb8f8aba1fe8424c7fd1bcca8f27f251c9ca5c2d9029d9/fast-file-encryption-1.2.6.tar.gz",
"platform": null,
"description": "Fast File Encryption\n======================\n\nThe *Fast File Encryption* is an open, very simple and well-designed file encryption solution for medium and large files (up to terabytes). It uses asymmetric RSA keys to encrypt and decrypt the files, in order to store the public key for encryption on the server, with no worries.\n\nQuick Usage Overview\n--------------------\n\nCreate a new key pair:\n\n.. code-block:: pycon\n\n >>> import fast_file_encryption as ffe\n >>> from pathlib import Path\n >>> ffe.save_key_pair(public_key=Path('public.pem'), private_key=Path('private.pem'))\n\nEncrypt a file:\n\n.. code-block:: pycon\n\n >>> original_file = Path('original_file.txt')\n >>> original_file.write_text('Hello world!')\n >>> encryptor = ffe.Encryptor(ffe.read_public_key(Path('public.pem')))\n >>> encrypted_file = Path('encrypted_file.ffe')\n >>> encryptor.copy_encrypted(original_file, encrypted_file, meta={'my-meta': 1}, add_source_metadata=True)\n\nDecrypt a file and read its meta data:\n\n.. code-block:: pycon\n\n >>> decryptor = ffe.Decryptor(ffe.read_private_key(Path('private.pem')))\n >>> decryptor.load_decrypted(encrypted_file)\n b'Hello world!'\n >>> decryptor.read_metadata(encrypted_file)\n {'my-meta': 1, 'file_path': '.../original_file.txt', ...}\n\nInstallation\n------------\n\nInstall *Fast File Encryption* using ``pip``:\n\n.. code-block:: console\n\n $ pip install fast_file_encryption\n\nDocumentation\n-------------\n\nYou find all details about the library, it's design and file format in the `documentation`_.\n\n\nLicense\n-------\n\nCopyright \u00a9 2021-2024 Tobias Erbsland https://erbsland.dev/ and EducateIT GmbH https://educateit.ch/\n\nAccording to the copyright terms specified in the file \"COPYRIGHT.md\".\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n\n.. _`documentation`: https://erbsland-dev.github.io/fast-file-encryption/\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A simple and fast asynchronous file encryption library for large files and data streams.",
"version": "1.2.6",
"project_urls": {
"Documentation": "https://erbsland-dev.github.io/fast-file-encryption/",
"Homepage": "https://github.com/erbsland-dev/fast-file-encryption",
"Issues": "https://github.com/erbsland-dev/fast-file-encryption/issues",
"Source": "https://github.com/erbsland-dev/fast-file-encryption"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "41119d42b2586f783972cbb15da5d1e01703963abde5f0dd0bbbf99909914b7f",
"md5": "0d974137c775afeed7e139460a7f93f7",
"sha256": "f95fdb4e7498a6503b0773b5bcdd967b80be8a0a0bfd2be4610e7c45ca0bf5fa"
},
"downloads": -1,
"filename": "fast_file_encryption-1.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d974137c775afeed7e139460a7f93f7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 20262,
"upload_time": "2024-01-05T21:45:31",
"upload_time_iso_8601": "2024-01-05T21:45:31.149593Z",
"url": "https://files.pythonhosted.org/packages/41/11/9d42b2586f783972cbb15da5d1e01703963abde5f0dd0bbbf99909914b7f/fast_file_encryption-1.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "be9c042e457bac53efbb8f8aba1fe8424c7fd1bcca8f27f251c9ca5c2d9029d9",
"md5": "6393030348b447a408ce52c63ddaeb3c",
"sha256": "477faad89f7706e68407b72593cb0d0c4290b132e309c7fa7d1be5fbc694de3a"
},
"downloads": -1,
"filename": "fast-file-encryption-1.2.6.tar.gz",
"has_sig": false,
"md5_digest": "6393030348b447a408ce52c63ddaeb3c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 21406,
"upload_time": "2024-01-05T21:45:32",
"upload_time_iso_8601": "2024-01-05T21:45:32.809038Z",
"url": "https://files.pythonhosted.org/packages/be/9c/042e457bac53efbb8f8aba1fe8424c7fd1bcca8f27f251c9ca5c2d9029d9/fast-file-encryption-1.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-05 21:45:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "erbsland-dev",
"github_project": "fast-file-encryption",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "cffi",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "cryptography",
"specs": [
[
"==",
"41.0.7"
]
]
},
{
"name": "iniconfig",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"23.2"
]
]
},
{
"name": "pluggy",
"specs": [
[
"==",
"1.3.0"
]
]
},
{
"name": "pycparser",
"specs": [
[
"==",
"2.21"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"7.4.4"
]
]
}
],
"lcname": "fast-file-encryption"
}