Saw that SHA-1 is being used for hashing passwords, which is insecure, as stated in the warning in hashlib: _"Warning: Some algorithms have known hash collision weaknesses (including MD5 and SHA1). Refer to Attacks on cryptographic hash algorithms and the hashlib-seealso section at the end of this document._
Additionally: "Warning: Salted hashing (or just hashing) with BLAKE2 or any other general-purpose cryptographic hash function, such as SHA-256, is not suitable for hashing passwords."
Alternative approach could be to utilize hashlib.pbkdf2_hmac if you want to stick with the hashlib library or shift over to argon2 password hashing function.
Saw that SHA-1 is being used for hashing passwords, which is insecure, as stated in the warning in hashlib: _"Warning: Some algorithms have known hash collision weaknesses (including MD5 and SHA1). Refer to Attacks on cryptographic hash algorithms and the hashlib-seealso section at the end of this document._
Additionally: "Warning: Salted hashing (or just hashing) with BLAKE2 or any other general-purpose cryptographic hash function, such as SHA-256, is not suitable for hashing passwords."
Alternative approach could be to utilize hashlib.pbkdf2_hmac if you want to stick with the hashlib library or shift over to argon2 password hashing function.