mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-25 00:29:42 +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);
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue