cryptography PBKDF2HMAC This code defines several encryption-related functions, including generating RSA key pairs, encrypting and decrypting messages, hashing passwords, and verifying passwords. The type of code 2024-12-16 12:17:15 13 views
Passlib This function uses the CryptContext class from the Passlib library to create a password hashing context and hashes the given password using the bcrypt algorithm. If a salt is provided, it will use that salt for the hashing. The function returns the hashed password. Function 2024-12-16 12:16:59 15 views
hashlib This function takes a password string as input and hashes it using the SHA-256 algorithm from the hashlib library, returning the hashed string. Utility Function 2024-12-16 12:16:46 17 views
cryptography hashes This function uses the cryptography library to sign a given message. It first loads the private key from a PEM file, then calculates the hash of the message, and finally signs the hash with the private key using the PKCS1v15 padding and SHA256 hash algorithm. The type of code 2024-12-16 12:13:20 6 views
bcrypt This function uses the bcrypt library to hash a password. It first generates a salt and then hashes the password using this salt. Password hash function 2024-12-16 12:13:14 17 views
bcrypt This set of functions provides methods to create password hashes, verify passwords, and generate salts using the bcrypt library. Function set 2024-12-16 12:13:13 17 views
bcrypt library This function generates a random password of a specified length using the bcrypt library and hashes it. It first generates a random salt using bcrypt's internal functions, then generates a random password, and hashes it with the salt. Finally, it returns the hashed password. The type of code 2024-12-16 12:11:03 6 views
Passlib CryptContext This code defines a function that randomly selects a password hashing algorithm from the Passlib library and hashes a given password using the selected algorithm. Password Hashing 2024-12-16 12:09:17 5 views
cryptography library This code defines two functions, one for encrypting a message with an RSA public key, and another for decrypting a message with an RSA private key. It uses the cryptography library's hashes and asymmetric modules. The type of code 2024-12-16 12:08:58 6 views
Passlib Argon2 This function hashes a password using the Argon2 algorithm from the Passlib library for secure storage. Password Hashing Function 2024-12-16 12:07:34 6 views