jchambers / java-otp

A one-time password (HOTP/TOTP) library for Java
MIT License
456 stars 122 forks source link

Secret key issue #2

Closed ghost closed 6 years ago

ghost commented 6 years ago

I've got my secret key as a string. How can I use thid code without creating a Key object ?

jchambers commented 6 years ago

You can't. You'll need to turn your string into a Key instance. This may help you: https://stackoverflow.com/questions/5355466/converting-secret-key-into-a-string-and-vice-versa