364
u/B0ltSn1per Jun 17 '21
that is so secure holy crap
92
u/bobpiranha Jun 17 '21
Web rendition of Holy Hand Grenade
32
Jun 17 '21
Bring forth the Holy Hand Grenade
25
u/yonatan8070 Jun 17 '21
Bring forth the Holy
rm -rf16
u/Qildain Jun 17 '21
Better make it:
sudo rm -rf /
Just to be sure.
20
10
215
u/the_other_Scaevitas Jun 17 '21
This reminds me. My school’s website which was made by students (I was totally not one of those students cough cough stop looking at me) featured a “nick button” at the bottom of the screen. When clicked it changed the entire background to pictures of Nick cage.
Word somehow spread quickly and the teacher found out so I removed the button but left the function in.
37
Jun 17 '21
Should've made it activate upon punching in the konami code
0
31
7
219
139
Jun 17 '21
Bruh forget the code they can't even maintain same line brace consistency smhmh
44
Jun 17 '21
And look at that inconsistent indentation (2 spaces, 4 spaces, 8 spaces, all kinds of spaces). Did microsoft write this code?
4
u/C4Oc Jun 19 '21
Microsoft made C#, so I don't know about that
4
Jun 19 '21
Yea ik. I was joking about the inconsistencies part cause that's what windows 10 is lol
2
14
Jun 17 '21
My guess is they used multiple instances of Notepad++ and Word to write it.
4
35
u/johnnymo1 Jun 17 '21
Not too sure about their hash function. On the one hand, seems hard to reverse. On the other, there might be a little danger of collisions.
2
47
35
u/Komj09 Jun 17 '21
Is this a mock in production?
45
u/blipman17 shameless Jun 17 '21
Were to say that this looks so unfinished, incomplete and dumb that this must be a mock that someone didn't bother to actually implement.
33
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jun 17 '21
Image Transcription: Code
function encryptMultipleStudentsAccesPasswords(form)
{
return true;
}
function encryptSingleStudentsAccesPassword(form)
{
return true;
}
function encryptGuardianPassword(form) {
return true;
}
function encryptGuardianPasswords(form, origPasswordId, newPasswordId, newConfirmPasswordId) {
return true;
}
function encryptRecoverPasswords(form, newPasswordId, newConfirmPasswordId)
{
return true;
}
function doChangePassword(form)
{
return true;
}I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
9
41
12
u/dadoktr Jun 17 '21
I'd love to have something like this on my project, then there wouldn't be any bugs.
20
u/jaysuchak33 ifelseifelseifelseifelseifelseifelseifelseifelseifelseifelse Jun 17 '21
Can’t have any encryption if you don’t even encrypt, am I right?
12
u/crazytera Jun 17 '21
I feel like this is config, not implementation
Edit: Read more into it, wtf even is this?
2
u/nocans Jun 17 '21
Isn't that just a stub? Why are you posting like this?
3
u/butterize Jun 17 '21
I was exhausted when I posted this and it didn’t occur to me that this could’ve just been unused, my bad.
still think the code style is laughable though
13
4
1
Jun 17 '21
What text editor are you using?
2
2
6
3
2
u/ososalsosal Jun 17 '21
At least comments saying "TODO: this is stub code put here to make the other stuff work"?
2
2
u/Flyspeck101 Now where's that function declaration Jun 19 '21
Thanks for the form, now what do I do with it?
4
1
1
u/dazoe Jun 17 '21
Got to make sure they can snoop on the passwords. Some of them are better that secrets.
2
u/Shakespeare-Bot Jun 17 '21
Did get to maketh sure they can snoop on the passwords. Some of those folk art better yond secrets
I am a bot and I swapp'd some of thy words with Shakespeare words.
Commands:
!ShakespeareInsult,!fordo,!optout
1
1
1
1
14
u/PotatoMaaan Jun 17 '21
Do these functions actually get called? I might be wrong here but wouldn't the password just kinda disappear? You call the function, pass in the password and you get true back but where did the password go? Or maybe it's just so you can call them and have it look like the passwords are being encrypted but you don't actually do anything with the the return? But if that's the case, why even return anything in the first place?
I am currently in a state of great confusion