OTPAuth
Parse TOTP provisioning URIs in Elixir
OTPAuth is a small Elixir library that parses otpauth://totp/… provisioning
URIs. It extracts the Base32-decoded secret, the account label, and parameters
such as the issuer. If the label and query both specify an issuer, they must
agree.
OTPAuth parses the URI; it does not generate one-time passwords. The decoded secret can be passed to NimbleTOTP to generate or verify codes.
Installation
Add otpauth to your dependencies in
mix.exs:
{:otpauth, "~> 0.1.1"}
See the API documentation on HexDocs.
Getting otpauth
You can get the current development version of otpauth using git:git clone https://github.com/evenfurther/otpauth.git
This will create a otpauth directory in which you will be able to record your own changes.
You can also browse the otpauth repository on GitHub.
Contributing to otpauth
Reporting bugs and asking for features
If you find a bug or have an idea for a new feature, you might consider adding a new issue. The more precise you will be in your description, the more useful it will be.Submitting patches
Patches are gladly accepted from their original author. Along with any patches, please state that the patch is your original work and that you license the work to the otpauth project under a license compatible with the current one (Apache License 2.0).
To propose a patch, you may fork the otpauth repository on GitHub, and issue a pull request. You may also send patches and pull requests by email.