concept place in category cryptography

appears as: place, place, places
Real-World Cryptography

This is an excerpt from Manning's book Real-World Cryptography.

Hash Tables. Programming languages usually expose data structures called hash tables (also called hashmaps, dictionaries, associated arrays, etc.) that make use of non-cryptographic hash functions. If a service expose this data structure in such a way where the input of the non-cryptographic hash function can be controlled by attackers, this can lead to denial of service (DoS) attacks (meaning that an attacker can render the service unusable). To avoid this, the non-cryptographic hash function is usually randomized at the start of the program. Many major applications have decided to use a MAC with a random key in place of the non-cryptographic hash function. This is the case for many programming languages like Rust, Python, Ruby or major applications like the Linux kernel that all make use of the SipHash MAC with a random key generated at the start of the program.[8]

Let’s imagine that Alice registers with a service using a symmetric key (often generated by the server and communicated to you via a QR code). A naive way to authenticate Alice later would be to simply ask her to send the symmetric key. This is of course not great, as a compromise of her secret would give an attacker unlimited access to her account. Instead, Alice can derive what are called one-time passwords (OTPs) from the symmetric key and send that in place of the longer-term symmetric key. Even though an OTP is not a password, the naming indicates that an OTP can be used in place of a password, and warns that it should never be reused.