Don’t Use Math.Random to Create Verification Codes ⚠️#webdevelopment #webdeveloper #backend

preview_player
Показать описание


📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

You know shit is serious if it is included in node by default

dAmiNatus
Автор

More importantly, write as little actual crypto yourself as possible. People do PhDs on cryptography, nothing you come up with is going to be better than a standard library.

jjpaq
Автор

For email verification it really doesnt matter, just include the account name, salt, timestamp and random, hash together and use result for you code.

AllanSavolainen
Автор

In fact it even looks cleaner, it takes in two arguments which should be the case most of the time

k_gold
Автор

Thanks so much! You really add value sharing your knowledge ♥

sobrehombre
Автор

Thank you for this information: crypto is available in node js by default

yearsago
Автор

He is trying to say that: This random function is pseudo-random. You cannot create "actually" random function on computer but create more sophisticated one.

cerberusrap
Автор

Math.random is really only predictable when you have close to the full output

lve
Автор

can you explain why? Pseudorandomness(which all randomness kind of is) is still quite hard to crack

warguy
Автор

Which vs code theme you are using..😅
I love it

smartsubscription
Автор

Take care on full-moon nights with those werewification codes.

sellinangi
Автор

ho knows, i create random numbers for new users receiptNumbers in dart/flutter and im wait no more than 1000-2000 users from small town. i need fix that? 😅

lordew
Автор

fun of you to assume the rest of my code is safe enough to make this the weakest link in the chain xd

keinname
Автор

Wait a random number can be guessed? Omg

a-yo
Автор

Yeah, likes someone would hack my web apps..

disolix_cze
Автор

You hear this a lot, but no one talks about how exactly you can predict the return value of Math.random() even in the simplest case. Everyone just repeats it like a mantra, without real understanding and explanation.

rmnilin
welcome to shbcf.ru