gototp icon indicating copy to clipboard operation
gototp copied to clipboard

Switching random generator

Open bcleenders opened this issue 10 years ago • 0 comments

Maybe using math/rand is not the best idea for creating "random" secrets. Instead, you should probably use crypto/rand (which provides cryptographically random data).

I forked your project to use crypto/rand instead: https://github.com/bcleenders/gototp

I didn't do a pull request, because I changed your interface (since users no longer give a random generator as argument). Thus, if anyone is using your code they would get errors when rebuilding.

Feel free to pull if you don't think that's a problem, though...

PS: still nice to have your code available!

bcleenders avatar Jan 12 '15 21:01 bcleenders