Posts tagged #security
-
How a hash chain shows tampering
A hash chain stores each record's hash inside the next record, so editing an old record breaks every later link and the change shows.
-
How a JWT works
A JWT is a header, a payload and a signature joined by dots. The signature catches changes to the token, but it does not hide what is inside.
-
How "Sign in with ..." works
An app signs you in without seeing your password: the provider sends back a short-lived code, and the app trades it for tokens.
-
How public-key encryption works
Public-key encryption uses a key pair: anyone can lock a message with the public key, and only the private key unlocks it.
-
How passwords are stored: salt and many rounds
A well-built site stores a value derived from your password, not the password. PBKDF2 mixes in a random salt and repeats the work many times.
-
How HTTPS keeps a connection private
Before a page travels, browser and server agree on a secret key in a short handshake, the server proves who it is, and the rest is encrypted.