Meaning - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Meaning (/showthread.php?tid=66782) |
Meaning - sheenam - 12-02-2016 Hi all, i wana know why does one put what does this line means? "$mysecret = 'galua.mugda'; " and encrypt it:- $key = sha1($mysecret . $email); Thanks and Regards, Sheenam Koul RE: Meaning - neuron - 12-02-2016 (12-02-2016, 04:15 AM)sheenam Wrote: Hi all,Short answers is to make sure that $email is not changed or corrupted on the way from sender to receiver. There are attacks that does it such as "man in the middle". Sender and Receiver both know the secret key ($mysecret). Sender sends data ($email) itself and message digest ($key). When receiver receives message he checks if data is changed or not by performing same operation $key = sha1($mysecret . $email); and comparing computed $key with the one he received. You need to research for further information. Search using "message authentication codes" or "message digest" RE: Meaning - arma7x - 12-02-2016 hashing & $mysecret is your salt RE: Meaning - sheenam - 12-02-2016 (12-02-2016, 04:55 AM)neuron Wrote:(12-02-2016, 04:15 AM)sheenam Wrote: Hi all,Short answers is to make sure that $email is not changed or corrupted on the way from sender to receiver. There are attacks that does it such as "man in the middle". Sender and Receiver both know the secret key ($mysecret). Sender sends data ($email) itself and message digest ($key). When receiver receives message he checks if data is changed or not by performing same operation $key = sha1($mysecret . $email); and comparing computed $key with the one he received. thanku so much dear. RE: Meaning - sheenam - 12-02-2016 (12-02-2016, 07:47 AM)arma7x Wrote: hashing & $mysecret is your salt thanku so much |