Skip to content

Instantly share code, notes, and snippets.

View robinkanters's full-sized avatar
🇳🇴

Robin Kanters robinkanters

🇳🇴
View GitHub Profile
@robinkanters
robinkanters / gen.sh
Last active March 23, 2017 09:52
generate 2048-bit rsa key (saves them in files names 'key_private' and 'key_public')
openssl genrsa 2048 | tee key_private >(openssl rsa -pubout > key_public) > /dev/null
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active January 17, 2024 23:54
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps