Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP encryption using Java PBEWithMD5AndDES

Status
Not open for further replies.

meanses

Programmer
Mar 25, 2005
7
US
There is java encryption file / process that is used quite frequently in the JSP world (found here: The current company I am working for has developed their own version of an LDAP server which uses this encryption standard. I am the only developer using PHP and I am required to use their LDAP / profile systems and to do such I have to follow their encryption standards.

It looks like to me this standard is known as “PBEWithMD5AndDES” and uses an 8 byte salt.

I would like to avoid using the php/java functions if possible and write a php script that can encrypt on the same standard.

Is this even possible?
 
Yeah.. I've done my research with the php based crypt functions..PHP doesnt have a one step solution that I could find for PBEWithMD5AndDES.

The other developers and I found a way around the whole problem and php is not going to authenticate the users.
 
I know this is off of your situation, but can java encrypt to just plain MD5 like php? Just curious...
 
I'll ask the java /jsp programmers tomorrow at work. I'm almost 100% it can.. but it wont hurt to verify it with them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top