Table of Contents
This is an old revision of the document!
[This page last changed 2024.03.04 13:16; visits 3 times today, 6 times yesterday, and 1230 total times]
This is a work in progress
Presentation can be just https://blog.1password.com/passkeys-vs-passwords-differences/
Passkey vs Password. What's the difference?
Password: alpha-numberic-special character sequence, a shared secret. Longer and more complex is better. Passkey: Uses Public Key Cryptology.
Using passwords
- Sign up with a website, eg, buystuff.com
- Buystuff accepts a password you create
- You need to remember this password, using a password manager like KeePassXC or others
- When you log in, you need to send the password to buystuff.com
- Buystuff makes sure you entered the correct password and if so lets you in
Using passkeys
- Sign up with a website that supports passkeys, eg, goodstuff.com
- You are using a password manager that supports passkeys
- Your password manager creates a public and private key that's unique for you
- You give the public key to goodstuff.com
- The private key never leaves your device
- When you want to log into goodstuff.com, the website creates a secret number and encrypts it using your public key, sends it to you
- Only you can decrypt the message as only you have the private key
- You decrypt the message and send back the secret number or phrase to goodstuff.com
- The website goodstuff.com receives this, compares it to what they encrypted and sent, and if matches they know it is you, and you're logged in
1. Passkey Example
Let's try a simple public/private key and we'll use addition as an operation and 3-digit numbers to make it easier for this example.
- Pick a public key: 359; private key will be 751. You'll see why shortly.
- Remember, everyone can know the public key but only you know the private key.
- Suppose message is 246
- Add public key:
- 2+3 = 5
- 4+5 = 9
- 6+9 = 5 (drop the carry)
- Thus the encrypted message is 595
- You receive the message 595 and decrypt it using your private key (751), only you know this
- 5+7 = 2 (drop the carry)
- 9+5 = 4
- 5+1 = 6
- and you decrypt the message and see 246.
Note this is a simple example. In real life a much larger public key and private key would be used involving large prime numbers and complex mathematics.
2. Live Demonstration
2a. Using existing passkey
On smi's Muscat, log into Shopify.com using BitWarden for either shopify1 or shopify2 account and its passkey.
2b. Creating passkey
This from video this Bitwarden demo video, we'll use Shopify.
- Set up environment once1)
- Go to Shopify.com
- Create account with password. Save to Bitwarden.
- Verify email so account is active.
- Log into Shopify.com, use Bitwarden.
- Manage account, Security
- Create Passkey
- Save it
- Log out, log in. Select the icon where userID is entered, select Shopify.
- You're logged in.