Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
pwおよびsalt文字列ですでに説明したメソッドを呼び出すだけです。
pw
salt
pw_bytes = pw.encode('utf-8') salt_bytes = salt.encode('utf-8') return hashlib.sha256(pw_bytes + salt_bytes).hexdigest() + "," + salt