π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours) header
π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours) profile picture

πŸ‘¨πŸ»β€πŸ’» tech lead developer πŸ‘¨πŸ»β€πŸ’» Never stop learning #webdev #LaravelEnthusiast https://teapawt.net/t.co/SbTeXxSNYk currently @flatchr ex @wiztopic

Paris, France
Joined June 2009
Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)Photo by π™°πš—πšπš‘πš˜πš—πš’ ⚑ (@Toussinours)
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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
17
206
1
989
73,635
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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
21
58
4
550
446,025
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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.
4
89
6
618
64,879
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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
53
654
57
2,887
306,283
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
My favorite JavaScript framework…
35
214
58
1,172
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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…
244
2,852
297
7,131
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Nice little site of coding fonts: devfonts.gafi.dev by @imGaafar. Filter by free, ligatures and see an interactive live preview.
19
307
34
1,259
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Laughing to this since the morning πŸ˜‚πŸ˜‚
100
1,537
173
8,103
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Pour ceux qui ont un compte PayPal et qui ne l'utilise pas πŸ€·πŸ»β€β™‚οΈ
17
335
48
156
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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 πŸ“©
31
1,205
74
5,136
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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.
18
381
55
1,098
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
πŸŽ‰ Laravel v7.0.0 has been released! πŸŽ‰ laravel.com/docs/7.x/release… ... what's your favorite feature? πŸ₯°
65
559
100
1,380
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Wasn't the internet supposed to make things easier? πŸ˜‚
77
1,832
580
3,038
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Did you know that you can select a node, press H, and toggle the visibility of an element with the @FirefoxDevTools Inspector? #DailyDevTools
5
32
2
117
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
how sql joins work
42
836
46
3,523
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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
1,276
3,489
535
29,817
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Cheat sheet for moving from #jQuery to vanilla #javascript JavaScript tobiasahlin.com/blog/move-fr…
2
4
π™°πš—πšπš‘πš˜πš—πš’ ⚑ 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.
36
1,686
41
2,875
π™°πš—πšπš‘πš˜πš—πš’ ⚑ retweeted
Happy 26th birthday to the universal operating system πŸŽ‚πŸ₯‚ #DebianDay
2
111
4
267