Conversation
|
@markbao How likely will this change break downstream code? |
|
I can't speak to closed source uses of Speakeasy, but I could only find one usage with possibly breaking code, in an unforked, unstarred, unwatched repository: https://github.com/pefish/common-express/blob/f3e44569b8eeb6430b7c7856a71ef213050056e4/utils/GoogleAuthenticator.js. I used this search: https://github.com/search?utf8=%E2%9C%93&q=speakeasy+generateSecret+ascii&type=Code. |
|
Any reason this isn't merged, yet? |
index.js
Outdated
| }; | ||
|
|
||
| function encodeASCII (bytes, symbols) { | ||
| var set = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz'; |
There was a problem hiding this comment.
T appears twice. This is almost certainly a mistake (that existed before your PR). Replace second T with Y.
There was a problem hiding this comment.
Good catch, I replaced the second T with a Y!
|
on an unrelated note, I stumbled across this myself earlier today and was super upset. Good job @pepve finding and fixing this! |
index.js
Outdated
| }; | ||
|
|
||
| function encodeASCII (bytes, symbols) { | ||
| var set = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz'; |
|
@pepve FYI I merged this code into https://github.com/mlogan/squeakeasy and published the fork as a new npm module called |
Hi, thanks so much for this project! It's really helping me out. I looked over the code and found something that might be improved.
The way secrets were generated not all outcomes were equally likely. Here's wat happened:
So now I do this:
I hope this is all clear! Thanks in advance for looking at this.