Skip to main content

InstaPassEncrypt

Hits

Encrypt a password in the format Instagram's web login expects (#PWD_INSTAGRAM_BROWSER:...). The public encryption key is fetched automatically from Instagram's login page.

Installation

pip install InstaPassEncrypt

Usage

As a library:

from InstaPassEncrypt import encrypt_password

enc = encrypt_password("my_password")
print(enc)
# #PWD_INSTAGRAM_BROWSER:10:1700000000:AAEK...

Reuse the key when encrypting several passwords (one less network request each time):

from InstaPassEncrypt import fetch_key, encrypt_password

key = fetch_key()
a = encrypt_password("first", key)
b = encrypt_password("second", key)

From the command line:

instapassencrypt
# Password: (type it, then Enter)

# or
python -m InstaPassEncrypt

API

  • encrypt_password(password, key=None): returns the encrypted string. Fetches a key if none is given.
  • fetch_key(timeout=10): fetches and returns a PasswordKey from Instagram's login page.
  • PasswordKey(id, public_key, version): holds the key data.
  • KeyFetchError: raised when the key can't be found on the login page.

Disclaimer

Only for use with your own account. You are responsible for complying with Instagram's Terms of Service.

License

MIT

Metadata

Release files for InstaPassEncrypt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for InstaPassEncrypt 0.1.0
File Size Uploaded Provenance Actions
instapassencrypt-0.1.0.tar.gz 4.2 kB Without provenance Details for instapassencrypt-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for InstaPassEncrypt 0.1.0
File Interpreter ABI Platform Actions
instapassencrypt-0.1.0-py3-none-any.whl Python 3 none any Details for instapassencrypt-0.1.0-py3-none-any.whl

Total release size: 9.2 kB

Release files / instapassencrypt-0.1.0.tar.gz

Download URL instapassencrypt-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
922ffe6dbbf867c3688538503aa0e70ce4ac41454b53d6e3fc26ab6445bda91e
BLAKE2b-256 checksum
How to use checksums
5db3dfbd35342309abe1bd98f9c801a4d7f92c7af80ffb3ba7820b2d32fda5bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / instapassencrypt-0.1.0-py3-none-any.whl

Download URL instapassencrypt-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
793e47ae7408d0e398b2fa6630321305b105033dae673a340ba006b976d82df4
BLAKE2b-256 checksum
How to use checksums
d3cd3e6d05fc74b0310f29337099f40224ef2530d9025e598c96f101314a965d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for InstaPassEncrypt 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page