How should passwords be stored?
Passwords should be hashed using an adaptive one-way function such as bcrypt.
Passwords can be stored in a BASE64 encoded format if they are stored in a private database.
Passwords should be salted and hashed using the MD5 algorithm.
Passwords should be hashed using the SHA-1 algorithm, then salted to provide defence against rainbow table attacks.