[
https://issues.apache.org/jira/browse/OFBIZ-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542976
]
Scott Gray commented on OFBIZ-1406:
-----------------------------------
Here's a snippet:
MessageDigest md = null;
try {
md = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
md.update(password.getBytes());
byte[] hashedPasswordBytes = md.digest();
you then need to convert hashPasswordBytes[] into a hex string, I just pulled a
random example off google to try it out
> make ofbiz recognize OSCommerce generated and imported encrypted passwords
> under Linux
> --------------------------------------------------------------------------------------
>
> Key: OFBIZ-1406
> URL: https://issues.apache.org/jira/browse/OFBIZ-1406
> Project: OFBiz
> Issue Type: New Feature
> Components: party
> Affects Versions: SVN trunk
> Reporter: Hans Bakker
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: password.diff
>
>
> If company replaces their OSCommerce systems with ofbiz, they would like to
> have the customer records imported including the OSCommerce generated
> encrypted passwords.
> This patch will make ofbiz recognize these passwords and let OSCommerce users
> login to ofbiz successfully This patch is however linux based because it is
> making use of the Linux operating system command 'md5sum' which operates
> exactly the same as the php md5 'C' program.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.