encrypt Password

open fun encryptPassword(token: String, password: String): String

Method used to encrypt the password

Return

the password encrypted as String

Parameters

token

The token of the user

password

The value of the password

Throws

when an error occurred during the encryption