Closed LeightonSmallshire closed 8 months ago
Hello, thanks for your interest in PyOTP.
The otpauth URI specification requires the algorithm value to be capitalized. Thus this appears to be an issue in the runescape implementation. I am not inclined to change our treatment of these parameters without overwhelming evidence that other OTP implementations relax the spec in this way and do the case-insensitive matching described here.
When trying to parse a uri provided by runescape, the 'algorithm' parameter causes this error;
stepping through the code shows this is a capitalization issue and should be easily fixed.
Example URI: 'otpauth://totp/playerName?secret=yourB64SecretHere&issuer=RuneScape&algorithm=sha1&digits=6&period=30'