authable v0.5.1 Authable.Utils.Crypt
Crypt utilities
Summary
Functions
Generates a random string
Compares string with Bcrypted version of the string
Generate a salt from given string
Functions
Generates a random string
Examples
Authable.Utils.Crypt.generate_token
# "ve7LXBsGqsvsXXjiFS1PVQ"
Compares string with Bcrypted version of the string.
Returns true if mathes, otherwise false
Examples
Authable.Utils.Crypt.match_password("12345678",
"$2b$12$wHkoEnYQ03mWH1CsByPB4ek4xu7QXIFYl5gAC6b8zYs3aj/9DNv3u"
)