Public-Key Cryptography on the Web 🔐

Experimenting with digital signatures using public-key cryptography in a web environment. Code available on GitHub.

Public-Key Cryptography on the Web 🔐
hartenfellerdev
526 views • Sep 20, 2023
Public-Key Cryptography on the Web 🔐

About this video

Code: https://github.com/phartenfeller/public-key-cryptography-web

I did a small experiment where I checked whether you could create a signature with a private-key and validate it with the public-key in the browser. This can be used to validate authorities or lock features away. Keep in mind that JavaScript can be tempered on the client, so this is not suitable to "hide" sensitive content. Use server-side checks for that!

Follow me:
Twitter: https://twitter.com/phartenfeller
Mastodon: https://mastodon.social/@phartenfeller
Blog: https://hartenfeller.dev/blog
LinkedIn: https://www.linkedin.com/in/phartenfeller/

Support me:
https://www.buymeacoffee.com/hartenfeller
https://paypal.me/phartenfeller

Resources:
https://en.wikipedia.org/wiki/Public-key_cryptography
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify

Timestamps:
00:00 About Public-key Cryptography
01:18 Plan / How should it work
02:17 Generate keys
03:15 Create signatures with private key and Node.js
04:37 Website that verifies signature
06:54 Warning: this is not suitable for sensitive checks

Video Information

Views

526

Likes

7

Duration

8:15

Published

Sep 20, 2023

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.