B
Brandon McCombs
Hello,
I'm working on a LDAP client and currently I'm adding support for binary
attributes. The userPassword attribute is really stored as an octet
string so it isn't actually binary. Some directory servers allow for
the password to be hashed for storage so I want to support that. I can
get everything working if I store the plaintext password however when I
try to run a password against some MD5 code I get a byte[] returned.
This doesn't work though when stored in the directory server.
I want to support md4, smd4, smd5, crypt, sha, and ssha. Is there any
place that I can get Java code for these algorithms where the code
returns a string instead of a byte[]? Converting the byte[] I get now
into a string doesn't work either. I have an older MD5 Crypt class I
downloaded a while back and it returns a String but that won't help for
all the algorithms I want to support.
thanks
I'm working on a LDAP client and currently I'm adding support for binary
attributes. The userPassword attribute is really stored as an octet
string so it isn't actually binary. Some directory servers allow for
the password to be hashed for storage so I want to support that. I can
get everything working if I store the plaintext password however when I
try to run a password against some MD5 code I get a byte[] returned.
This doesn't work though when stored in the directory server.
I want to support md4, smd4, smd5, crypt, sha, and ssha. Is there any
place that I can get Java code for these algorithms where the code
returns a string instead of a byte[]? Converting the byte[] I get now
into a string doesn't work either. I have an older MD5 Crypt class I
downloaded a while back and it returns a String but that won't help for
all the algorithms I want to support.
thanks