I dont understand why the following script:
first_name VARCHAR(20),
last_name VARCHAR(40) NOT NULL,
email VARCHAR(60) NOT NULL,
password CHAR(40) NOT NULL,
has names etc as VARCHAR and password as CHAR.. is it because of how it is retrieved, i.e. names come together, like first name comes with surname, whereas passwords are individual.. im not sure..
Also, in MySQL is script the same thing as code in Python?
This looks like a
sha1hash. The hash-algorithm was popular in earlier years by developers.sha1encrypted passwords always have the fixed length of 40 characters,sha1is considered as unsafe nowadays and in latter versions of PHPpassword_verifyandpassword_hashfunctions has been implemented, which use internallyblowfishorbcrypt(60 characters). If the password length is always fixed, like with sha1CHARcan be used for better performance.