MySQL Tutorial 53 – How to Encrypt Data with 2-Way Encryption




HELP ME! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://eepurl.com/-8qtH Donate!: http://bit.ly/DonateCTVM2.

source


5 responses to “MySQL Tutorial 53 – How to Encrypt Data with 2-Way Encryption”

  1. +science2491 
    Sorry for long wait,but for those who still wonder :

    Salt is a string which is being converted along with the encrypted data,while key is the way which you used to convert the string.

    A salt is used to ~hash~ (not encrypt) not just the data(for example – a password) but the salt with it,so if a hacker tries to crack the hash and see the password,he will need to find and seperate the salt as well.
    Adding salt is as simple as this :
    hash = salt + data + salt;
    Even the "secret" salt is known to the attacker,the salt still fulfills its purpose.

    A key is the 'way'(kind of way) which the data passed in order to reach the encrypted text,and is used later when you want to decrypt the data and see what it is.
    Well,same like a key in a door,you open a door with a particular key and can open it only with the same particular key.

Leave a Reply