Skip to content

Instantly share code, notes, and snippets.

View jfernandez-pwnhealth's full-sized avatar

Jose C Fernandez jfernandez-pwnhealth

  • PWNHealth
  • Fort Lauderdale/North Miami Beach, Florida, US
View GitHub Profile

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@jfernandez-pwnhealth
jfernandez-pwnhealth / application_helper.rb
Created June 16, 2021 20:49 — forked from jc00ke/application_helper.rb
Stubbing controller_name & action_name in Rails 3 with rspec 2.5
module ApplicationHelper
def foo
controller_name == 'widgets' && action_name == 'index'
end
end
@jfernandez-pwnhealth
jfernandez-pwnhealth / extract-objects-from-rails-models-and-controllers.md
Created March 31, 2021 13:24 — forked from scmx/extract-objects-from-rails-models-and-controllers.md
7 Patterns to Refactor Rails Models 7 years later #rails #model #refactor #valueobject #serviceobject #formobject #queryobject #viewobject #policyobject #decorator

7 Patterns to Refactor Rails Models 7 years later

You may have read the following excellent blogpost by Brian Helmkamp of CodeClimate. It nicely describes 7 types of objects that can be extracted from models and controllers in a Rails-app.

7 Patterns to Refactor Fat ActiveRecord Models https://codeclimate.com/blog/7-ways-to-decompose-fat-activerecord-models/ Brian Helmkamp on Oct 17, 2012.

Here are my thoughts on it, reading it as an experienced rails developer, 7 years later 😅 👴