mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-12-22 03:32:30 +00:00
Fixed padding for base32tohex return value
This commit is contained in:
parent
430607231c
commit
365dafdb4f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue