
π¨π»βπ» tech lead developer π¨π»βπ» Never stop learning #webdev #LaravelEnthusiast https://teapawt.net/t.co/SbTeXxSNYk currently @flatchr ex @wiztopic
Paris, France
Joined June 2009
- Tweets1.2K
- Following445
- Followers101
- Likes148
π°ππππππ’ β‘ retweeted
How to store passwords safely in the database and how to validate a password? Letβs take a look.
ππ‘π’π§π π¬ πππ ππ¨ ππ¨
πΉ Storing passwords in plain text is not a good idea because anyone with internal access can see them.
πΉ Storing password hashes directly is not sufficient because it is pruned to precomputation attacks, such as rainbow tables.
πΉ To mitigate precomputation attacks, we salt the passwords.
ππ‘ππ π’π¬ π¬ππ₯π?
According to OWASP guidelines, βa salt is a unique, randomly generated string that is added to each password as part of the hashing processβ.
ππ¨π° ππ¨ π¬ππ¨π«π π π©ππ¬π¬π°π¨π«π ππ§π π¬ππ₯π?
1οΈβ£ A salt is not meant to be secret and it can be stored in plain text in the database. It is used to ensure the hash result is unique to each password.
2οΈβ£ The password can be stored in the database using the following format: π©π’π΄π©( π±π’π΄π΄πΈπ°π³π₯ + π΄π’ππ΅).
ππ¨π° ππ¨ π―ππ₯π’ππππ π π©ππ¬π¬π°π¨π«π?
To validate a password, it can go through the following process:
1οΈβ£ A client enters the password.
2οΈβ£ The system fetches the corresponding salt from the database.
3οΈβ£ The system appends the salt to the password and hashes it. Letβs call the hashed value H1.
4οΈβ£ The system compares H1 and H2, where H2 is the hash stored in the database. If they are the same, the password is valid.
Over to you: what other mechanisms can we use to ensure password safety?
β
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
π°ππππππ’ β‘ retweeted
π°ππππππ’ β‘ retweeted
Your SQL query is slow and you need to create an index. But which one?
An index on a single column is wrong 99% of the time...
π Learn with 5 tweets why you always need a multi-column index
π°ππππππ’ β‘ retweeted
π₯ Here are 4 more ways you can use JavaScript's new Promise.withResolvers() method.
Use it today. It's in every browser and can be polyfilled in 9 lines.
π°ππππππ’ β‘ retweeted
Tip: @ChromeDevTools can now override the content of Fetch/XHR requests! Great for mocking APIs without waiting on backend changes!
This and lots more in Chrome 117: bit.ly/wnd117
π°ππππππ’ β‘ retweeted
Every iPhone will search itself for whatever Apple wants, or for whatever Apple is directed to want. They are inventing a world in which every product you purchase owes its highest loyalty to someone other than its owner.
edwardsnowden.substack.com/pβ¦
π°ππππππ’ β‘ retweeted
Nice little site of coding fonts: devfonts.gafi.dev by @imGaafar. Filter by free, ligatures and see an interactive live preview.
π°ππππππ’ β‘ retweeted
Pour ceux qui ont un compte PayPal et qui ne l'utilise pas π€·π»ββοΈ
π°ππππππ’ β‘ retweeted
When dealing with SMS validation code form, don't forget to add the autocomplete attribute with the value "one-time-code".
It allows iOS to autofill the input with the incoming SMS π©
π°ππππππ’ β‘ retweeted
On 25 August 1991, Linus at age 21 announced Linux project/system in a Usenet posting to the newsgroup. Here is original email that changed IT world forever.
π°ππππππ’ β‘ retweeted
π Laravel v7.0.0 has been released! π laravel.com/docs/7.x/releaseβ¦ ... what's your favorite feature? π₯°
π°ππππππ’ β‘ retweeted
Did you know that you can select a node, press H, and toggle the visibility of an element with the @FirefoxDevTools Inspector?
#DailyDevTools
π°ππππππ’ β‘ retweeted
Tesla Model S Perf vs Porsche Taycan Turbo S
$105,990 $185,000
345mile range 280mile range
0-60 in 2.4s 0-60 in 2.6s
163mph 161mph
Autopilot
π°ππππππ’ β‘ retweeted
Cheat sheet for moving from #jQuery to vanilla #javascript JavaScript tobiasahlin.com/blog/move-frβ¦
π°ππππππ’ β‘ retweeted
Bien quβelles mettent souvent en avant un numΓ©ro surtaxΓ©, toutes les enseignes possΓ¨dent forcΓ©ment un numΓ©ro non surtaxΓ© que leurs clients peuvent utiliser dans certains cas.L'UFC - Que Choisir vous dΓ©livre la liste des principaux numΓ©ros gratuits pour ne plus payer inutilement.
π°ππππππ’ β‘ retweeted
Happy 26th birthday to the universal operating system ππ₯
#DebianDay

































