Hashing passwords
Passwords can be hidden for display, for example, by using a field of type Password. However, passwords saved as field or other values (such as environment variables) are not secure. The following methods provide a means to secure passwords:
- hashPassword hashes a string value so that it is not recognizable.
- verifyPassword verifies a string value against a hashed value.