e-CryptIt Engine Xojo Plugin |

# EinhugurBCrypt.Hash Method

Hashes the token / password with a salt that has been generated with the GenerateSalt routine or obtained from external source.

shared Hash(
token as String,
salt as String) as String

#### Parameters

token
  The token or password to hash.
salt
  The salt to use, generated with the GenerateSalt function or obtained from external source.

#### Returns

String
  The result hash.

#### Remarks

This function is also offered as long running task with the HashTask function, which is meant for if you have the need for very high work rate without having the hardware to do that in short time.
This function can raise InvalidArgumentException exception.

#### See Also

EinhugurBCrypt Class