steven_elvisda Posted June 2, 2011 Share Posted June 2, 2011 Dear All respective friend, I'm asking for help. during I know how to code in php. I alway use md5() but I had some problem with abit. can anyone introduce me with persona code encryption without using md5()? Your ideal are very important to me especially small example code. Looking forward from you soon. Kindly Regards, Steve. Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/ Share on other sites More sharing options...
gristoi Posted June 2, 2011 Share Posted June 2, 2011 have a look at sha1 encryption Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1223989 Share on other sites More sharing options...
revraz Posted June 2, 2011 Share Posted June 2, 2011 Neither is Encryption, it's a hash and nothing more. What types of problems did you have? If you explain that, we can probably solve your issue. Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224042 Share on other sites More sharing options...
gristoi Posted June 2, 2011 Share Posted June 2, 2011 my bad, obviously throwing the word encryption around implies that something can be decrypted. whereas revraz is right, sha1 is a one way hash. Apologies Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224044 Share on other sites More sharing options...
steven_elvisda Posted June 3, 2011 Author Share Posted June 3, 2011 Hi All friend, My idea is 1. I want to create personal encryption for password of user registration to encrypt password(with personal method) 2. the easy way for personal encryption is easy to send email to user and to a void hacker or other crack to crack our personal. in this case if we use md5 or other sha1 we will have problem when some people have our hash code. I hope you understand what I purpose and apologize for my bad english. Kindly Regards, Steve. Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224450 Share on other sites More sharing options...
revraz Posted June 3, 2011 Share Posted June 3, 2011 Have your hash code? Use a salt. Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224463 Share on other sites More sharing options...
steven_elvisda Posted June 3, 2011 Author Share Posted June 3, 2011 what you mean by this friend? anyway I want to create hash by my own. Is it possible.? Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224486 Share on other sites More sharing options...
Pikachu2000 Posted June 3, 2011 Share Posted June 3, 2011 Are you saying you want to create your own hashing algorithm? Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224497 Share on other sites More sharing options...
WebStyles Posted June 3, 2011 Share Posted June 3, 2011 I agree with revraz. Use salt. This basically means that you add your own distinct hash to the password before you hash it again. something like this: $salt = md5('My_L1ttl3#S4lt'); $encrypted = sha1($salt.$password); you can play around with it, use both methods like example (sha1 & md5) or just one, add salt to beginning, end, middles, whatever. hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224582 Share on other sites More sharing options...
steven_elvisda Posted June 4, 2011 Author Share Posted June 4, 2011 Are you saying you want to create your own hashing algorithm? Yeah that is my main idea. Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224962 Share on other sites More sharing options...
steven_elvisda Posted June 4, 2011 Author Share Posted June 4, 2011 I agree with revraz. Use salt. This basically means that you add your own distinct hash to the password before you hash it again. something like this: $salt = md5('My_L1ttl3#S4lt'); $encrypted = sha1($salt.$password); you can play around with it, use both methods like example (sha1 & md5) or just one, add salt to beginning, end, middles, whatever. hope this helps nice many thank for you idea it is very good deal and I never thinking of it before Quote Link to comment https://forums.phpfreaks.com/topic/238191-personal-encryption/#findComment-1224965 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.