EncryptPassword method gets different password than MBPM Admin Tools?
I am writing an MBPM solution to reset passwords in eUser.
I added a user with MBPM Admin Tools with password, 'prana345'; the encrypted password in eUser is E8C33CD296C88B072E74D3822F07F366. Using EncryptPassword, the encypted password is different.
So I assume that I cannot use the password encrypted by EncryptPassword?
I have some code that does an MD5 hash to encrypt passwords and that seems to work.
Comments
-
What version are you testing with? My tests yield identical MD5 hash values using the admin tools and the Mstm.EncryptPassword() method against the string 'prana345' in 9.1.3.
Did you trim your inputs for leading and trailing white space? Is the case the same?
0 -
Yeah, Tony, that's the problem. But EncryptPassword takes a Text and how do you Trim a Text?
Thanks.
0 -
MyText.ToString().Trim()
0 -
yeah, i figured that out, but that returns a string and the encrypt method takes a text, so i am confused by that.
here's what i am doing and it gets a different result. i am displaying it to a mem field on my form.
newPwdEncrypted = Mstm.EncryptPassword(Local.txtNewPassword.ToString().Trim());
0 -
You should be able to implicitly go back and forth between a DotNet string and a Metastorm.Runtime.Types.Text. Not sure what the issue is. Have you verified that Local.txtNewPassword has your expected value prior to passing it into the function? Are the dependencies wired up correctly? What is the value that the function actually returns? Is it a hash of an empty string?
0 -
Wow, now i see. B/C i checked 'password' on the text control, it's already encrypted. Thanks!
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories