MDN Web Docs @developer.mozilla.org 路 Apr 19

Generate cryptographically secure UUIDs in the browser 馃攼 `crypto.randomUUID()` is built into the Web Crypto API, no npm package needed. Works in all modern browsers and Node.js 14.17+. Learn more 馃憞 developer.mozilla.org/en-US/docs/...

90 likes 6 replies

?

Replies

justdima 路 Apr 19

interesting

Ryosuke 路 Apr 19

One of my favorite new features. Important to know it requires SSL/HTTPS tho. I had to add certs to my localhost to get this working on client-side.

鐞垵QiTry 路 Apr 20

Before that, I used javascript to generate uuid, you have to rub the hand algorithm

Mohammad Ali 路 Apr 19

Loved using crypto when I was new to Node. Now I just let Prisma handle auto-increment IDs and UUIDs.

Ethan Lee 路 Apr 19

Also using let without reassigning it is a crime

Ethan Lee 路 Apr 19

Great API! Been developing this local Canva alternative and I use the window crypto API to generate random UUIDs for each vector materialvect.ingstudios.dev.