2è¦ç´ èªè¨¼ã§ããªãã¿ã®TOTPãRailsãªã©ã§ã©ã使ãã°ããããéã«è©¦ãã RFC 6238 - TOTP: Time-Based One-Time Password Algorithm Gemfile ä»åã¯rotpã¨ããgemã¨ãäºæ¬¡å ãã¼ã³ã¼ãï¼QRã³ã¼ããã¨ããã¨åæ¨ãªã®ã§ããªã³ã¬ãªè¡¨è¨ããã¦ãï½ï¼ã®è¡¨ç¤ºã®ããã«rqrcode_pngã使ã gem 'rotp' gem 'rqrcode_png' TOTPã試ã ã³ã³ã½ã¼ã«ã§: totp = ROTP::TOTP.new("hogehogefugafuga") #=> #<ROTP::TOTP:0x007fd5fad22850 @digest="sha1", @digits=6, @interval=30, @issuer=nil, @secret="hogehogefugafuga"> totp.now #=> "241886
{{#tags}}- {{label}}
{{/tags}}