#mruby-bnet-authenticator mruby implementation of the Battle.net Mobile Authenticator ℹ️.
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'iij/mruby-digest'
conf.gem :github => 'iij/mruby-io'
conf.gem :github => 'iij/mruby-socket'
conf.gem :github => 'iij/mruby-regexp-pcre'
conf.gem :github => 'iij/mruby-pack'
conf.gem :github => 'dorentus/mruby-bnet-authenticator'
end
authenticator = Bnet::Authenticator.new('CN-1402-1943-1283', '4202aa2182640745d8a807e0fe7e34b30c1edb23')
puts authenticator
authenticator.get_token
authenticator = Bnet::Authenticator.request_authenticator(:US)
authenticator = Bnet::Authenticator.restore_authenticator('CN-1402-1943-1283', '4CKBN08QEB')
under the MIT License
- see LICENSE file
Contains multiple-precision arithmetic code originally written by David Ireland, copyright (c) 2001-13 by D.I. Management Services Pty Limited <www.di-mgt.com.au>, and is used with permission. Link: Cryptography Software Code.