plistlib --- Generate and parse Apple .plist files
plistlib
.plist
hashlib --- Secure hashes and message digests
hashlib
本章所描述的模組 (module) 實作了多種加密演算法。它們可以在安裝時選擇是否一同安裝。在 Unix 系統上,crypt 模組也有機會能夠被使用。以下為概述:
crypt
new()
md5()
sha1()
sha224()
sha256()
sha384()
sha512()
sha3_224()
sha3_256()
sha3_384()
sha3_512()
algorithms_guaranteed
algorithms_available
hash.digest_size
hash.block_size
hash.name
hash.update()
hash.digest()
hash.hexdigest()
hash.copy()
shake_128()
shake_256()
shake.digest()
shake.hexdigest()
file_digest()
pbkdf2_hmac()
scrypt()
blake2b()
blake2s()
blake2b.SALT_SIZE
blake2s.SALT_SIZE
blake2b.PERSON_SIZE
blake2s.PERSON_SIZE
blake2b.MAX_KEY_SIZE
blake2s.MAX_KEY_SIZE
blake2b.MAX_DIGEST_SIZE
blake2s.MAX_DIGEST_SIZE
hmac
digest()
HMAC.update()
HMAC.digest()
HMAC.hexdigest()
HMAC.copy()
HMAC.digest_size
HMAC.block_size
HMAC.name
compare_digest()
secrets
SystemRandom
choice()
randbelow()
randbits()
token_bytes()
token_hex()
token_urlsafe()