jennings / OATH.Net

A small library that implements the HOTP and TOTP algorithms for two-factor authentication. Compatible with the Google Authenticator app for iPhone and Android.
https://www.nuget.org/packages/OATH.Net/
28 stars 14 forks source link

Create key conversion to/from base32 #1

Closed jennings closed 12 years ago

jennings commented 13 years ago

Google Authenticator expects keys to be presented in base32. This is reasonable to support in this library because Google Authenticator is the primary focus, and other authenticators are likely to follow Google's lead as well.

jennings commented 12 years ago

Commits 5dcd3fb through f542c9d. Separated the key out into its own class, which can be initialized with a byte array or with a base32 string.