Skip to main content

login

Module for common login service
$ pip install login
from login import generate_password_hash, check_password_hash, set_salt

# set into config script
set_salt("__YOUR__SECRET__KEY__")

# set into sign-in script
username = 'ksg97031'
password_hash = generate_password_hash(password)
user = User(username, password_hash)
db.session.add(user)
db.session.commit()

# set into login script
login_username = 'ksg97031'
user = User.query.filter(User.name == login_username).first();
assert user is not None
if not check_password_hash(password, user.password):
    return 'Login Fail'

Metadata

Release files for login 0.0.6

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

Source distribution (sdist)

Source distribution for login 0.0.6
File Size Uploaded Provenance Actions
login-0.0.6.tar.gz 1.8 kB Without provenance Details for login-0.0.6.tar.gz

Release files / login-0.0.6.tar.gz

Download URL login-0.0.6.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d3edf1e1a9ac26f43c4db7e2beb7649e411087f3a52f99a937740ba57f3d0e81
BLAKE2b-256 checksum
How to use checksums
5fe7223a0b3f459de9475b97d85e8123f44beca6062fce78d008522d0aba7f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Security for login 0.0.6

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.

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