diff --git a/qml/lib/crypto.js b/qml/lib/crypto.js index ca867ae..9cba4f0 100644 --- a/qml/lib/crypto.js +++ b/qml/lib/crypto.js @@ -52,7 +52,7 @@ function base32tohex(base32) { var chunk = bits.substr(i, 4); hex = hex + parseInt(chunk, 2).toString(16) ; } - return hex; + return hex.length % 2 ? hex + "0" : hex; } // Pad Strings to given length diff --git a/rpm/harbour-sailotp.yaml b/rpm/harbour-sailotp.yaml index a48c866..a529c1c 100644 --- a/rpm/harbour-sailotp.yaml +++ b/rpm/harbour-sailotp.yaml @@ -1,7 +1,7 @@ Name: harbour-sailotp Summary: SailOTP Version: 0.4 -Release: 1 +Release: 2 Group: Security URL: https://github.com/seiichiro0185/sailotp/ License: "BSD\t"