Any good tutorial on how to deal with passwords? In a site of mine I generate a salt with UUIDv4 and generate a sha512 of the passsword+salt and store both the salt and hash. When the user authenticates I regenerate the hash and check. This is good, right? I still don&#x27;t know how to deal with cookies&#x2F;sessions though. And have no idea how basic http auth works.<p>I&#x27;d search myself but I&#x27;m afraid to find a &quot;bad&quot; tutorial.