This makes the password actually secure. A dude decrypted my sha512 password in less than a minute. Said dude also wrote this code - all credit to @rjacksonm1