Oh kafe, thanks a lot dude, i was really shocked when took the md5 hash and put it on some website and told me “password found” then showed it to me!!
what i want to understand, if php is decrypting it anyway in process of the applications, then anybody can decrypt it the same way and see it as free-text! so this is applicable even if used the sha512 as well! problem is maybe i don’t understand how this mechanism works grrrrrrrrrr
now, i’ve done what you said above as quick test earlier, changed in edit_users and also in login application, i saw that password is being storred encrypted to database different hash than using md5 (same password) but the login application didn’t authinicate, didn’t open the project login screen… so i didn’t think it will be such easy!
just to clear things out, lets take it less than easy… when storing the password field to database it should go with encryption method, nomatter if md5 or sha512… now we have the hash in the database, then we need to inform the login application to use the same algorithm to decrypt it in order to authenticate correctly, right!?
in this case, if that it true, then we can’t apply this to ongoing project, all passwords should be using sha512 because login app will use sha512 to decrpyt it all the time, so if it was md5 hash the one stored, it will not work!
moreover, do you think in this case the field of the password should e increase from varchar 32 to something else? if yes, what varchar should be 512? more? is this why my problem happened? something like when decrypting it doesn’t store the full hash (only 32 chars) then login app isn’t able to decrypt? because varchar32 is being used by sc security when created (assuming md5) what you think?
one last thing, in this case we have to apply all these stuff to each project we create? is there a way to save the applications modified and use them with next projects? i am really finding it stupid to go through all the changes we do for each project, including the minor changes to security appls and headers/footers templates, themes usage… how we can do something to be used later in other projects!?
well, those are very important points, if you think we need a session will be great and better actually, only problem is the timing dude
let me know what you think please