mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-15 04:05:35 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d0c6d76431 | ||
|
936e103c3f |
@@ -72,7 +72,7 @@ module.exports = class Crypto {
|
||||
const mod = new BigNumber(key.n());
|
||||
const buffer = modPow(base, power, mod).toBEBuffer();
|
||||
|
||||
if (buffer.byteLength !== 257 && buffer[0] === 0x00)
|
||||
if (buffer.byteLength === 257 && buffer[0] === 0x00)
|
||||
return buffer.slice(1).toString('base64');
|
||||
|
||||
return buffer.toString('base64');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ebics-client",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "Node.js ISO 20022 Compliant EBICS Client",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
Reference in New Issue
Block a user