Skip to main content

哈希密码生成程序

Project description

hashpass

哈希密码生成程序

关于 hashpass

如果所有的网站都使用同一个密码毫无疑问是非常不安全的, 密码一旦丢失所有账号都会被一锅端. 常见的处理方法是生成随机密码, 目前有很多软件和应用可以做到, 但随机密码有个不好的地方, 密码非常难记需要有个地方储存密码, 你可以保存到云上或者本地, 但这又产生信任和丢失的问题. 于是我想用一种尽可能简单的方法, 来生成复杂同时又不需要储存的密码, 那就是记住一个盐值, 然后生成哈希密码.

算法

  1. 将输入的域名(domain)与环境变量设置的盐(HASHPASS_SALT)进行字符串拼接
  2. 拼接得到的字符串使用 SHA-256 算法加密
  3. 然后把得到的哈希值进行 base64 编码
  4. 截取前length个字符串, 返回结果

使用

输入域名和密码长度, 点击开始, 程序会自动复制结果到剪贴板, 直接 CTRL + V 即可

打包程序

pip install -r requirements.txt
pyinstaller -Fw main.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hashpass-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

hashpass-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file hashpass-0.1.1.tar.gz.

File metadata

  • Download URL: hashpass-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Windows/10

File hashes

Hashes for hashpass-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d40bb9da6c9d131f77626dacc73e3186b4fa8f6f14f6b0aed5f40576880aaf91
MD5 641943986c7c5ebabe5eaf27af3a1d2c
BLAKE2b-256 2391e693fb697d1894471e2ff6a6c1ce1fffddbbf3c3eb06ede60ff0adf7482e

See more details on using hashes here.

File details

Details for the file hashpass-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hashpass-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Windows/10

File hashes

Hashes for hashpass-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acf19e269c933daa0d568644ec60205830a8fda1518cbb9efef08c590381fb62
MD5 64586e3cb3026f2fef4c2611c57a44c1
BLAKE2b-256 feecb7cd2bcb9b7113185bed206a6ed8835c7c643b8df09f0d4a8587ba0acf1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page