Class for hashing and salting passwords