what’s in a password?

$ echo -n 'hotgirlsummer808' | shasum -a256
13f26e5a60e402d895c5ce1d9492d080563c5079a8b5f52a25953fd24a2cb1da
{
"algorithm": "sha256",
"username": "syd",
"salt": "0a19471dab710025",
"hash": "4be637a8c85455dce0cdc1c7670f062764100276b6ed64141c06fbef4578f185"
}
class User < ActiveRecord::Base
has_secure_password
end
<%# app/views/user/new.html.erb %>
<%= form_for @user do |f| %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<%= f.submit "Submit" %>
<% end %>

--

--

--

software engineer. red wine addict. obsessed with vintage cars and jewelry.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Windows firewall is the overlooked defense against WannaCry and Adylkuzz

Find if your email or passwords have been breached

Third Party Processing under GDPR

Bridge Insights #03: Reward Pools — Chat Recording

On Expanded Password System

AMC SESSION: Beyond “Install Tor & Signal” Saturday, June 17 • 2:00pm — 3:30pm State Hall Room: 111…

EPNS HIRING.

ROBOT Virtual Machine WALK THROUGH

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
syd

syd

software engineer. red wine addict. obsessed with vintage cars and jewelry.

More from Medium

Setting up Postgres with Ruby on Rails 7 on Ubuntu 20.04

Process incoming emails in Rails 6 with Action Mailbox : from development to production

Using Rail’s Active Storage to add an upload field to a React form.