Jump to content

Personal Encryption


steven_elvisda

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.