HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Black Box authentication against encrypted passwords


#1

Black Box authentication isn’t working, and I’m wondering if it’s because the other database table I’m hitting has passwords encrypted via SHA1? Any suggestions on how to get this to work?


#2

Hi Todd,

It’s probably that. It sounds like you’ll need to encrypt the password they enter before you do your database query to check it. In PHP the function you need is sha1().

So you’ll need to do something like this before the query:

$password = sha1($password);


#3

Yeah, I knew it was something like that … thanks, got it working, that’s a great little feature. Got a couple more days left on my trial, then it looks like we’ll be ringin’ the register. :slight_smile:


#4

I think, that is interesting for all.