tituga Posted March 28, 2008 Posted March 28, 2008 I would like to remove the encryption password of the customer and the admin, I wanted it appears in the phpmyadmin the password than appear to encryption, it is possible? It's important. thanks Sorry my English, I'm portuguese.
tituga Posted March 28, 2008 Author Posted March 28, 2008 People, sorry for my post, but I'm read some docs and I now that is impossibitity. But I've a problem here. I've a project where I need to move the password and email from Programme of management to oscommerce, but with the encryption (I think it is in md5) I don't know how. Anyone help? Thanks
arietis Posted April 1, 2008 Posted April 1, 2008 I've a project where I need to move the password and email from Programme of management to oscommerce, but with the encryption (I think it is in md5) I don't know how. you will need to write a program that will take your data from your management program and insert it into the oscommerce database. when you set the password, you will need to use the tep_encrypt_password() function found in includes/functions/password_funcs.php.
tituga Posted April 3, 2008 Author Posted April 3, 2008 how to use this function? Where she put a password to be encrypted? thanks
arietis Posted April 3, 2008 Posted April 3, 2008 how to use this function? Where she put a password to be encrypted? from your previous post, you said that the password was already in the database, but in clear text. you need to write a program that will read the passwords, encrypt them with the tep_encrypt_password() function and write them back out to the database. how are you moving the customer information from your old program to your new one? if someone is doing this for you, you should have them do the encryption of the password information so it gets stored in the database correctly.
tituga Posted April 4, 2008 Author Posted April 4, 2008 I am developing a program for interaction with the oscommerce wiht a programme of management and need to move the data. So I do not know how to encrypt the password. I have a code to encrypt a password that comes from the management programme, but it is not equal to the oscommerce. This is the code that I have: package pt.ConvBD; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Criptografia { private static MessageDigest md = null; static { try { md = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException ex) { ex.printStackTrace(); } } private static char[] hexCodes(byte[] text) { char[] hexOutput = new char[text.length * 2]; String hexString; for (int i = 0; i < text.length; i++) { hexString = "00" + Integer.toHexString(text); hexString.toUpperCase().getChars(hexString.length() - 2, hexString.length(), hexOutput, i * 2); } return hexOutput; } public static String criptografar(String pwd) { if (md != null) { return new String(hexCodes(md.digest(pwd.getBytes()))); } return null; } } I withdrew this code of the net. What I have to change the password to give equal to the oscommerce? Thank you
arietis Posted April 5, 2008 Posted April 5, 2008 What I have to change the password to give equal to the oscommerce? Thank you use the function that i told you about in my previous post. that will encrypt the password. it's the same function that oscommerce itself uses, so it will work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.