PHP (Encryption and HTML blocking)

Posted by VigilantPsyche on March 25, 2008, 2:16 p.m.

Hi again, guys. Thanks for all the help so far. Here's another one:

1) For encrypting passwords, is it secure enough to salt the password and md5(sha1()) it.

2) I need to block HTML and php code when echoing out posts. How do I go about this?

Comments

Jaakko 16 years, 8 months ago

No offence, but isn't this blog a little too short for frontpage?

VigilantPsyche 16 years, 8 months ago

Yeah, sorry. I just hoped someone would tell me before they tag it, then I'll delete it.

Jaakko 16 years, 8 months ago

Omg you're smarter than me <.<

s 16 years, 8 months ago

Give it a long salt and yes, md5+sha1 should be good enough. Some *sctoautgihc**cfoiurgeh* store it in plaintext like fools

Convert < to < and > to >

DesertFox 16 years, 8 months ago

You dont just post a short blog and hope we ignore it.

VigilantPsyche 16 years, 8 months ago

Thanks, serpy.

s 16 years, 8 months ago

I also forgot to note that you should include some of the user's info scrambled into the salt