Skip to content

Update module pquerna/otp to v1.3.0

renovate requested to merge renovate/github.com-pquerna-otp-1.x into master

This MR contains the following updates:

Package Type Update Change
github.com/pquerna/otp require minor v1.0.0 -> v1.3.0

Release Notes

pquerna/otp

v1.3.0

Compare Source

v1.3.0 contains minor changes and enhancements. All users should be safe to upgrade.

Functional changes

  • Added GenerateOpts.Rand to control the random source for generating secrets #​45
  • Parse the Period of an OTP URL #​49

Documentation changes

  • Note that SHA1 should be used for compatibility with Google Authenticator #​57
  • Expanded Example #​53

v1.2.0

Compare Source

v1.2.0 of otp contains no breaking changes, and is safe for all users to upgrade.

Changes since v1.1.0:

  • Add Go modules related files #​40
  • Expose a new .Secret field on the {hotp,totp}.GenerateOpts structs. This lets you import an existing secret instead of generating a new one. #​42
  • Internal change to use base32.NoPadding as an encoding rather than trimming the standard padding #​41

Non-functional changes since v1.1.0:

  • Upgrade Go versions tested in Travis CI #​39

v1.1.0

Compare Source

Most users of otp should be able to upgrade safely. I'm happy to say otp is a stable library and is being used by many groups successfully.

Changes since v1.0.0:

  • #​30: Increases default secret size from 10 bytes to 20 bytes. This may effect storage of newly generated secrets, eg in a SQL database backend.
  • #​25: Improved interoperability with broken base32 encoders.
  • #​31: Bugfix: Check for a zero default Digits in hotp.Generate.
  • #​21: Adds otp.key.URL() method.

Non-functional changes since v1.0.0:

Thank you to all of the contributors for this release:


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by renovate

Merge request reports