Ruby Gem implementation of Secure QR Login algorithm