Commit Graph

76 Commits

Author SHA1 Message Date
nanov
2b35ed072a fix: crypto additional byte check 2021-03-30 14:20:25 +03:00
nanov
6921f8d503 chore: cleanup crypto sign fucntion 2021-03-30 09:20:21 +03:00
Dimitar Nanov
043caedc94
Merge pull request #50 from Herrie82/master
Cryto.js: Nasty workaround for incorrect signature (257 vs 256) and h…
2021-03-30 08:58:35 +03:00
Herman van Hazendonk
500737dbc7 Remove not needed else statement
Cleanup as per comment
2021-03-29 09:12:23 +02:00
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
Herman van Hazendonk
a628e00b9b Add support for Bank GPB AO (Gazprombank Russia)
Add custom order types (G02, G52, G53, G1R and G1V) and examples for Bank GPB AO (Gazprombank Russia).

Pain.001.001.06 (RUB) - G1R
Pain.001.001.06 (FCY/FX/RLS) - G1V
Pain.002.001.06 - G02
Camt.052.001.05 - G52
Camt.053.001.05 - G53

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
2021-03-24 22:13:18 +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