1
Software Security and Testing - D385 Questions
and Answers (100% Correct Answers) Already
Graded A+
What hash function should you use for most general purpose
cryptographic hashing? Ans: SHA-256
What hash function should you consider using for high security
© 2026 Assignment Expert
environments, though it may have less support? Ans: SHA3-256
What hash function should you use for very large messages? Ans:
Guru01 - Stuvia
BLAKE2
What two hash functions should you avoid, as they're now considered
unsecure? Ans: MD5 and SHA1
What is the difference between hash functions and checksum functions?
Ans: Hash functions have stronger collision resistance, checksums are
faster. Checksums are not useful for security.
What module do you use for cryptographic hashing in Python? Ans:
hashlib
What 3 properties characterize hash functions? Ans: 1. Deterministic
behavior 2. Fixed-length hash values 3. Avalanche effect
What is the logging numeric value for DEBUG? Ans: 10
, For Expert help and assignment handling,
2
What does logging.DEBUG indicate? Ans: Detailed information, typically
only of interest to a developer trying to diagnose a problem.
What is the logging numeric value for INFO? Ans: 20
What does logging.INFO indicate? Ans: Confirmation that things are
working as expected
What is the logging numeric value for WARNING? Ans: 30
© 2026 Assignment Expert
What does logging.WARNING indicate? Ans: Something unexpected
happened, or that a problem might occur in the near future. Software is
still working as expected.
Guru01 - Stuvia
What is the logging numeric value for ERROR? Ans: 40
What does logging.ERROR indicate? Ans: Software has not been able to
perform some function due to a more serious problem.
What is the logging numeric value for CRITICAL? Ans: 50
What does logging.CRITICAL indicate? Ans: A serious error, indicating
that the program itself may be unable to continue running.
Should you use the secrets or random module for generating secure
random numbers? Ans: secrets
What do keyed hash functions do? Ans: Hash functions using different
keys produce different hash values of the same message. Hash functions
using the same key produce matching hash values of the same
message. Ensures data authentication.