EncryptionUtils class

A utility class responsible for handling encryption and hashing operations.

This class provides methods for securely hashing user passwords, combining the username, password, and an additional pepper (constant) to generate a secure hash.

Constructors

EncryptionUtils()
Default constructor for EncryptionUtils.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hashUserPassword({required String userName, required String passwordToHash}) String
Generates a SHA-512 hash of the user's password combined with the username and a pepper.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited