# Example password
password <- "I like cookies"
# Hash is what you store in the database
hash <- password_store(password)
# To verify the password when the user logs in
stopifnot(password_verify(hash, password))
Run the code above in your browser using DataCamp Workspace