معرفی شرکت ها


cryptfile-1.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

General purpose Python encrypted file-like object with random IO.
ویژگی مقدار
سیستم عامل -
نام فایل cryptfile-1.0.4
نام cryptfile
نسخه کتابخانه 1.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده github.com/alemigo
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/alemigo/cryptfile
آدرس اینترنتی https://pypi.org/project/cryptfile/
مجوز -
General purpose Python encrypted file-like object that facilitates random access IO. Uses AES encryption in CTR mode. Can be used with modules such as tarfile, zipfile, lzma, pickle, json and others that accept a file-like object as an alternative to a path. Supports binary IO modes only. ### Examples ``` import cryptfile with cryptfile.open('data.bin', 'wb+', aes_key=b'256 bit key', block_num=5000) as f: f.write(b'Hello, World!') f.seek(0) print(f.read()) Result: b'Hello, World!' ``` ### Documentation cryptfile.**open**(*file, mode, aes_key=None, block_num=10000*) Returns a CryptFile object for a specified file. - *file* can either be a string containing a valid path, or a file-like object. - Supported *mode* values are: `wb, wb+, rb, rb+, ab, ab+`. - 256 bit binary *aes_key* is used for en/decryption, or if none is provided for a new file, a random key is generated and is retrievable with the `.aeskey` property. - *block_num* sets the number of 16 byte AES blocks per cryptfile block for new files. Each cryptfile block stores its own 8 byte nonce value, and is re-written in whole if any part of the block is altered. Larger *block_num* values optimize for more sequential IO, whereas smaller values optimize for smaller random IO that jumps around the file. This argument is not needed for opening existing files. ### Dependencies PyCryptodome for AES encryption ### Installation pip install cryptfile


نیازمندی

مقدار نام
- pycryptodome


نحوه نصب


نصب پکیج whl cryptfile-1.0.4:

    pip install cryptfile-1.0.4.whl


نصب پکیج tar.gz cryptfile-1.0.4:

    pip install cryptfile-1.0.4.tar.gz