Herrie
61581d1af7
Cryto.js: Nasty workaround for incorrect signature (257 vs 256) and hex key length (514 vs 512)
...
For some unknown reason, the signature gets a length of 257 bytes instead of 256 bytes, and the length of the hex value is 514 bytes instead of 512 bytes.
This works around it, until a proper fix is implemented. The bug seems to be caused by https://github.com/node-ebics/node-ebics-client/blob/master/lib/crypto/Crypto.js#L71 somehow.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2021-03-25 10:07:33 +01:00
nanov
7053a03286
chore: update deps
2020-03-06 06:47:56 +02:00
chrwoizi
e57316c6cb
Wait until the keys are generated
...
The initialization method should wait until the key file is written because other methods could use the keys-method after initialization.
2020-02-14 11:46:15 +01:00
Herrie
d38460011c
Add XG1 order type and example
...
XG1 order type is used for ISO XML 20022 CGI (Common Global Implementation) which should be a unified format that works within a country (irrespective of bank).
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2019-11-29 14:38:46 +01:00
nanov
9725380edd
feat: add C53, C52 and DKI orders
2019-11-26 18:22:09 +02:00
Dimitar Nanov
6d882f56fe
Merge pull request #26 from Herrie82/herrie/DKI
...
* Add DKI, C52, C53 order types.
* Some examples for STA, VMK, C52, C53, DKI and HKD order types.
* Rename example for HBT into HTD.
2019-11-26 18:15:32 +02:00
nanov
88ba543784
feat: add ebics 061011 error
2019-11-26 18:13:30 +02:00
Herrie
f8c9cc7ba8
Add C52/C53 order types and examples
...
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2019-11-25 16:22:39 +01:00
Herrie
d2473bb81d
Add DKI order type
...
To download Exchange rate files and fix syntax error.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2019-11-25 16:20:59 +01:00
nanov
a10a3a8d63
feat: async letter serialization
2019-11-20 14:40:18 +02:00
nanov
67d74cfa00
test: add more tests
2019-11-20 11:12:37 +02:00
Herman van Hazendonk
0b9d93f745
Various fixes for spelling
...
Various minor spelling mistake fixes.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2019-11-19 14:48:26 +01:00
nanov
4496cbf560
feat: remove toBuffer from number
2019-11-07 10:30:03 +02:00
nanov
0efc46b014
feat add BigNumber tests
2019-11-07 10:27:20 +02:00
nanov
eafe2f9f55
chore: restructure BigNumber
2019-11-07 10:27:08 +02:00
nanov
24afdeb257
chroe: import consts
2019-11-07 10:26:53 +02:00
nanov
34051f0a9f
feat: migrate Crypto to own BigNumber
2019-11-07 08:58:52 +02:00
nanov
14779088f1
chore: lint
2019-11-07 08:57:54 +02:00
nanov
aad0bd97c8
feat: implement all needed BigNumber methods
2019-11-07 08:57:44 +02:00
nanov
429e807994
fix number generarion
2019-11-06 17:27:48 +02:00
nanov
bb8d1cfaa0
wip: migrate MFG1 to BigNumber
2019-11-06 17:16:56 +02:00
nanov
cda36bfcb3
wip: implement BigNumber wrapper
2019-11-06 17:16:15 +02:00
nanov
df9c330411
feat: drop moment dependency
2019-11-06 16:52:31 +02:00
nanov
33ac6ac60f
feat: implement date handling and formatting
2019-11-06 16:51:59 +02:00
nanov
0c01420c1e
chore: cleanup
2019-11-05 06:09:07 +02:00
Dimitar Nanov
5c419630c1
Merge pull request #16 from eCollect/feat/handle-unsual-exponent
...
Feat: handle unsual exponent migrate to node-forge
2019-11-05 05:58:50 +02:00
nanov
cf16abc843
chire: jsdoc
2019-11-05 05:54:16 +02:00
nanov
c60fed4d58
chore: lint
2019-11-05 05:54:09 +02:00
nanov
9aa2ab7380
chore: lint
2019-11-05 05:53:20 +02:00
Vladislav Hristov
104ec67f8c
chore: add ; at the end of Key.js
2019-11-01 16:52:36 +02:00
Vladislav Hristov
e8a80932e1
fit: key size is now calculated instead of hardcoded
2019-11-01 16:50:39 +02:00
Vladislav Hristov
ce6cd02e58
fit: BankLetter.js get key size
2019-11-01 16:28:04 +02:00
Vladislav Hristov
59a281c895
feat: use new Key in Keys manager
2019-11-01 13:49:33 +02:00
Vladislav Hristov
61ada747f3
clean: remove modulus and exponent property from bankKeys()
2019-11-01 13:48:51 +02:00
Vladislav Hristov
f15e09840a
add: add Key class to manage a single key
2019-11-01 13:44:29 +02:00
nanov
e40f79cee6
feat: prepare order generation tests
2019-11-01 08:13:53 +02:00
Vladislav Hristov
4149c01695
wip: migrate to node-forge
2019-10-31 18:57:42 +02:00
Vladislav Hristov
1c1f112ff5
fix: modulus zero byte handling
2019-10-30 10:53:03 +02:00
Vladislav Hristov
2c9040904a
chore: remove console.log statements
2019-10-08 16:09:08 +03:00
anandsahil
aa761cf7ad
move dateRange from constants to utils
2019-08-01 14:14:30 +02:00
anandsahil
5ff3147124
add new order type XZ53 and removed repeated dateRange to consts
2019-08-01 14:00:07 +02:00
sahil anand
89904afa63
Merge pull request #2 from anandsahil/minorChanges
...
remove eCollect from constant and minor verbose error handeling
2019-07-25 17:40:29 +02:00
anandsahil
d06e92c51c
add iso pain format XCT order type
2019-07-22 17:36:38 +02:00
anandsahil
cb2062ae2f
remove eCollect from constant and minor verbose error handeling
2019-07-22 17:31:24 +02:00
vasyas
5f0b6cd374
#2 corrected bank keys parsing
2019-06-27 00:13:44 +03:00
Vladislav Hristov
968b582493
Fix BankLetter constructor
2018-08-31 10:24:34 +03:00
Vladislav Hristov
1f857a7f85
Fix serialize method
2018-08-31 10:23:41 +03:00
Vladislav Hristov
e2af5c6ea8
Add traces storage
2018-08-31 08:50:18 +03:00
Vladislav Hristov
548c17a868
Add serialize function to BankLetter class
2018-08-30 13:53:24 +03:00
Vladislav Hristov
5d4e9f8309
Fix orderData method
2018-07-04 16:30:16 +03:00