Skip to content

Conversation

@SievaFliesAlone
Copy link
Contributor

Addresses #83

  • Adds String secret constructor
  • Adds notes about secret being Base32-encoded to avoid confusion with the RFC-4226 shared secret
  • Ensures that UTF-8 used for encoding/decoding (just in case; String#getBytes() uses standard charset)


Get information about the generator:
```java
byte[] secret = totpGenerator.getSecret();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4yi getSecret doesn't exist (anymore?)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BastiaanJansen BastiaanJansen merged commit 04c8232 into BastiaanJansen:main Dec 23, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants