Tiqr / tiqr-server-libphp

A PHP library for using the tiqr authentication mechanism
6 stars 7 forks source link

Fix OCRA algorithm used by tiqr "v2" calculating incorrect responses … #22

Closed pmeulen closed 2 years ago

pmeulen commented 2 years ago

…for some values

And add and update tests

Now both the old (v1) and the new (v2) algorithm generate the same response when interpreted as an integer for the default OCRA algorithm that is used by Tiqr. v1 and v2 responses may differ in string length because the v1 algorithm does not add leading "0"'s

pmeulen commented 2 years ago

Thanks @MKodde for your kind words and tips :)