⎗ ✓ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20#!/usr/bin/env python3 # Password Card 0.2.3 The Unlicense import string, hashlib, random CHARS = string.digits + string.punctuation + string.ascii_lowercase + string.ascii_uppercase ROWS, COLS = 3, 3 password = input("Password: ") salt = "変更推奨ソルト" key = hashlib.pbkdf2_hmac('sha512', password.encode(), salt.encode(), 100_000) rng = random.Random(int.from_bytes(key, "big")) for count, _ in enumerate(range(ROWS * COLS), start=1): k, v = rng.choice(CHARS), rng.choice(CHARS) print(f"{k}:{v}({count:02})", end=' ') if count % COLS == 0: print()
Warning LINK You are about to visit a link which has been flagged with the above content warnings. Do you wish to continue? Continue Cancel