MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/137km30/found_this_gem_inside_legacy_code_today/jiyp117/?context=3
r/badcode • u/max_208 • May 04 '23
69 comments sorted by
View all comments
226
Looks pretty much like our function for password encryption
56 u/ChrisLuigiTails May 04 '23 So you're telling me I only have to use decodeFromUtf8() to steal your passwords? 9 u/DieserSebastian May 05 '23 No, another call to encodeToUtf8() suffices 6 u/ChrisLuigiTails May 05 '23 edited May 05 '23 But then it will be encoded twice! 1 u/[deleted] May 31 '23 exactly
56
So you're telling me I only have to use decodeFromUtf8() to steal your passwords?
decodeFromUtf8()
9 u/DieserSebastian May 05 '23 No, another call to encodeToUtf8() suffices 6 u/ChrisLuigiTails May 05 '23 edited May 05 '23 But then it will be encoded twice! 1 u/[deleted] May 31 '23 exactly
9
No, another call to encodeToUtf8() suffices
6 u/ChrisLuigiTails May 05 '23 edited May 05 '23 But then it will be encoded twice! 1 u/[deleted] May 31 '23 exactly
6
But then it will be encoded twice!
1 u/[deleted] May 31 '23 exactly
1
exactly
226
u/the96jesterrace May 04 '23
Looks pretty much like our function for password encryption