登入登出系統從來都沒那麼輕鬆過
Password Encryption:
encrypted_password = crypto("your_password")
User Registration:
success = register("path_to_your_csv.csv", "username", "password")
User Login:
is_logged_in = login("path_to_your_csv.csv", "username", "password")
Password Retrieval:
password = get_password("path_to_your_csv.csv", "username")
This module requires Python 3.6 or higher. Using the following command to get the module
pip install git+https://github.com/tudohuang/csvIO.git
import csvIO
encrypted_password = csvIO.crypto("your_password")
success = csvIO.register("path_to_your_csv.csv", "username", "password")
is_logged_in = csvIO.login("path_to_your_csv.csv", "username", "password")
password = csvIO.get_password("path_to_your_csv.csv", "username")
密碼加密:
encrypted_password = crypto("your_password")
用戶註冊:
success = register("path_to_your_csv.csv", "username", "password")
用戶登入:
is_logged_in = login("path_to_your_csv.csv", "username", "password")
查詢密碼:
password = get_password("path_to_your_csv.csv", "username")
本模組需要 Python 3.6 或更高版本。依賴的外部庫包括:
csv
:用於讀取和寫入 CSV 文件。hashlib
:用於進行 SHA-256 密碼加密。os
:用於檢查文件是否存在。