Hello everyone, I'm attempting to implement TOTP in my application.
Im reading a lot about it but some questions still remain. I hope you guys can help me xd
Im thinking about using the following library:
https://github.com/BastiaanJansen/otp-java?tab=readme-ov-file
Questions:
1) Should I use this library since its the only library with most recent commits? The others I have found are old(?)
2) How should I keep the secrets?
The readme says:
Should I encrypt and save this secret for each user in the database?
3) For each time a user logins, I should instantiate the following code? And then use the totp object to validate user code input?
4) How do I create a QRCode so the user can setup its microsoft authenticator?
I know I can use a library like this one:
https://mvnrepository.com/artifact/io.nayuki/qrcodegen/1.8.0
But how should I build the QRCode?
I really appreciate any help. I have never implemented this before. xd