
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
allsafe-otp
is a simple Python package for generating Time-Based One-Time Passwords (TOTP) and QR codes for two-factor authentication (2FA). It allows you to easily create secure OTPs and generate QR codes that can be scanned with Google Authenticator or other 2FA apps.
pip install allsafe-otp
from allsafe_otp.totp import generate_otp
secret = "JBSWY3DPEHPK3PXP" # Your base32 secret
otp = generate_otp(secret)
print(f"Generated OTP: {otp}")
from allsafe_otp.generate_qr import generate_qr_code
otp_url = "otpauth://totp/MyApp:daniel@allsafe.com?secret=JBSWY3DPEHPK3PXP&issuer=MyApp"
generate_qr_code(otp_url)
To test the package:
pip install allsafe-otp
test.py
):from allsafe_otp.totp import generate_otp
from allsafe_otp.generate_qr import generate_qr_code
secret = "JBSWY3DPEHPK3PXP"
print("Generated OTP from Python:", generate_otp(secret))
otp_url = "otpauth://totp/MyApp:daniel@allsafe.com?secret=JBSWY3DPEHPK3PXP&issuer=MyApp"
generate_qr_code(otp_url)
allsafe-otp/
āāā allsafe_otp/
ā āāā __init__.py
ā āāā generate_qr.py
ā āāā totp.py
āāā setup.py
āāā README.md
Feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A simple TOTP + QR code generator package for 2FA
We found that allsafe-otp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.