1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-07-19 00:31:36 +00:00

Fixed padding for base32tohex return value

This commit is contained in:
seiichiro 2014-01-13 00:04:24 +01:00
parent 430607231c
commit 365dafdb4f
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ function base32tohex(base32) {
var chunk = bits.substr(i, 4); var chunk = bits.substr(i, 4);
hex = hex + parseInt(chunk, 2).toString(16) ; hex = hex + parseInt(chunk, 2).toString(16) ;
} }
return hex; return hex.length % 2 ? hex + "0" : hex;
} }
// Pad Strings to given length // Pad Strings to given length

View file

@ -1,7 +1,7 @@
Name: harbour-sailotp Name: harbour-sailotp
Summary: SailOTP Summary: SailOTP
Version: 0.4 Version: 0.4
Release: 1 Release: 2
Group: Security Group: Security
URL: https://github.com/seiichiro0185/sailotp/ URL: https://github.com/seiichiro0185/sailotp/
License: "BSD\t" License: "BSD\t"