Before you save a password to a database, it may make sense to encrypt it. That way, when you do some user authentication, you can compare the users submitted password to the one on the database.
#A. Import the SHA1 Method
#B. Encrypt the Password string
@hash_pass = Digest::SHA1.hexdigest('super password')
#C. Display the encrypted password
How to deploy your Rails app on ElasticBeanstalk (including S3 buckets, security groups, load balancers, auto-scalling groups and more) using CodeCommit.
How to install Vue.js framework on Ruby on Rails.
We will use four different package managers to set up our environment. Homebrew is a package manager for Mac. We will use brew to install rbenv. rbenv is...
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email
You’ve successfully subscribed to Chris Mendez
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.