Per user licensing approach
Helpers.ComputePasswordHash
uses a special algorithm (more precisely PBKDF2) to compute hash in such a way that it is harder for an adversary to guess. Normal hash functions such as SHA256 are very fast to compute, whereas PBKDF2 makes the computation slow on purpose so that it takes longer time to guess the original password.
To add a new user, the code below can be used:
Key.GetKey
instead of Key.Activate
, since we don’t want to allow the end user to add new users. If you want to allow users to do that, feel free to change back to using Key.Activate
.