๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก (@Toussinours) header
๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก (@Toussinours) profile picture

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป tech lead developer ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Never stop learning #webdev #LaravelEnthusiast https://nitter.gq/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
990
73,633
Vous souvenezโ€‘vous quand vous avez rejoint Xย ? Moi, ouiย ! #MonAnniversaireX
4
23
๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก 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,022
๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก 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
619
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,886
306,280
Vous souvenez-vous quand vous avez rejoint Twitterย ? Moi, ouiย ! #MonAnniversaireTwitter
1
1
1
76
๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก retweeted
My favorite JavaScript frameworkโ€ฆ
35
214
58
1,172
Vous souvenez-vous quand vous avez rejoint Twitterย ? Moi, ouiย ! #MonAnniversaireTwitter
1
๐™ฐ๐š—๐š๐š‘๐š˜๐š—๐šข โšก 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,853
297
7,135
hello @LuccaSoftware Est-il possible de cacher sa date d'anniversaire sur son profil afin que cela n'apparaisse pas dans le trombinoscope ?
1
Cโ€™รฉtait un plaisir de lire ses tweets... ses tweets รฉtaient brillants et intรฉressants, tu nous manque dรฉjร  @MaitreMo #MaitreMรด
1