semvec/pypi-packages huggingface dataset:
cryptfile 1.0.4
General purpose Python encrypted file-like object with random IO.

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
Facebook-Friend-Photos-Download 1.0.1
A simple tool to download all photos (from all albums) from your friend's facebook.
Requires Python: >=3.6

# Facebook Friend's Photos Download

[![N|Solid](https://cldup.com/dTxpPi9lDf.thumb.png)](https://nodesource.com/products/nsolid)

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

FFPD is a simple script that allows you to download all photos from your friend's albums.

# New Features

  - You can download photos from either Page or User
  - Each download will be saved in separated folder

### How to use
First, install `Facebook-Friend-Photos-Download` with `pip`:  
```bash
$ pip install Facebook-Friend-Photos-Download
```  

Then refer to the example.py as below:

**Example code**  

```python
from Facebook-Friend-Photos-Download import FFPD

bot = FFPD(token=your_facebook_token)
bot.download(user_of_of_your_friends_account)
```
### How to get token and user ID

- Get your FB token: There are many ways to get your personal token but i strongly recommend using [Multiple Tools for Facebook by Loc Mai](https://chrome.google.com/webstore/detail/multiple-tools-for-facebo/eojdckfcadamkapabechhbnkleligand/reviews?hl=en&gl=001&bin_assignment_request=nct:on?utm_campaign%253Den) Chrome extention to get your token securely.
- Get your friend's ID: simply paste their profile URL into [This Website](!https://lookup-id.com/)

License
----

MIT