Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword removes salt from the provided password and verifies its hash. Internally it uses a special library github.com/JammUtkarsh/cypherDecipher, to remove salt from the password.
func GenerateJWT ¶
GenerateJWT takes username as parameter and returns a JWT string and error if any.
func HashPassword ¶
HashPassword removes the salt from the provided password returns the hashed version of it. Internally it uses a special library github.com/JammUtkarsh/cypherDecipher, to remove salt from the password.
func ValidateToken ¶
ValidateToken takes JWT string as a parameter and verifies it. Returns an error if invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.