All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic password-hashing

Recently created
Least recently created
Recently updated
Least recently updated

timmy / Argon2 密碼雜湊生成

0 likes
0 forks
1 files
Last active 7 months ago
使用 Argon2 生成穩固的密碼雜湊,含自定義參數調整安全性。
argon2 command-line encryption password-hashing security
1 echo -n "my_password" | argon2 somesalt -id
2 echo -n "my_password" | argon2 somesalt -id -t 4 -k 65536 -p 2 -l 64 -e

timmy / 🔐 Python 密碼雜湊教學:用 bcrypt 安全加密與驗證

0 likes
0 forks
1 files
Last active 8 months ago
用 bcrypt 進行密碼加密與驗證,支援 salt、自動安全雜湊,保護你的使用者資料不被爆破!適合登入驗證與帳號系統 🚀
authentication bcrypt login-system password-hashing python security
1 import bcrypt
2
3
4 def encode_password(password: str) -> str:
5 salt = bcrypt.gensalt()
6 hashed = bcrypt.hashpw(password.encode(), salt)
7 return hashed.decode()
8
9
10 def check_password(password: str, hashed: str) -> bool:
Newer Older

Powered by Opengist ⋅ Load: 33ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文