How to make my own encryption make using php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make my own encryption make using php

How to make my own encryption & decryption make using php Please submit also source code

1st Aug 2017, 4:54 AM
Vinay
Vinay - avatar
2 Answers
+ 2
@Minin that's hashing, not encrypting. For storing passwords you should use neither md5 or sha1. You are supposed to use bcrypt or pbkdf2, as they are made for hashing passwords because they are slow and use salts.
1st Aug 2017, 7:29 AM
aklex
aklex - avatar
0
If you need at least a bit of protection, use sha1() and make the first argument the string you want to en/decrypt, you can also use md5() but that's been cracked already. (Dont use sha1 to store passwords for long, as sha1 has been cracked, but only by Google so you're okay, or at least for a little while)
1st Aug 2017, 7:16 AM
piss boy