Ente führt SRP zur Authentifizierung ein
Ente hat alle Apps auf das Secure Remote Password Protocol (SRP) umgestellt, sodass Passwort oder Hash bei der Anmeldung nicht über das Netzwerk übertragen werden.
Over the last month we updated all our apps to use the Secure Remote Password protocol for authentication.
What is SRP?
Secure Remote Password (SRP) protocol is an elegant cryptographic method designed to enhance password based authentication systems. It allows a client and server to prove to each other that they know a secret without actually sharing the secret or its hash across the network.
How does it work?
To use SRP, we need:
- a key derivation function (KDF) that can derive a very large number from your password (we've chosen Argon2id v1.3)
- an SRP group consisting of two numbers: one very large prime and one generator (we've chosen the 4096-bit SRP group)
Setup
To setup SRP, the client generates some non-secret information, and stores it on our servers.
- User picks a
password, from which the client derives akeyEncryptionKey, which is from there on used to encrypt the user'smasterKey - From this
keyEncryptionKey, the client derives aloginKeyusing libsodium'scrypto_kdf_derive_from_key - The client then uses this
loginKeyand the pre-determined SRP group to generate averifier - This
verifier, along with the SRP group is then sent to the server for storage, which is from there on never returned back to the client …