74 Commits

Author SHA1 Message Date
Dario
39e85a959e fix compile errors with AuthenticatedEncryption as Poco::AutoPtr 2020-06-24 14:15:48 +02:00
Dario
b8e93e8142 change AuthenticatedEncryption to use auto ptr, if password will be calculated (changed password) and use to decrpyt it could be lead to an error 2020-06-24 10:34:00 +02:00
Dario
337bf554f5 use only one implementation of decryption, call from all input parameter variants via inline functions 2020-06-24 10:20:10 +02:00
Dario
dcfed9bb12 add compare function with private key as parameter for comparing private keys in controller::user::login to skip calculating public key from private key 2020-06-24 10:18:30 +02:00
Dario
c009a12f45 add createUserDirect and missing functions for that in related classes 2020-06-09 20:34:27 +02:00
Dario
7d826fcacd use new user in login 2020-06-09 12:14:51 +02:00
Dario
c44184f823 update code to work together for setting new password and update encrypted privkey and password hash in db 2020-06-08 18:30:29 +02:00
Dario
e7624382ae use KeyPairEd25519 and AuthenticatedEncryption in controller/User 2020-06-08 13:42:37 +02:00
Dario
8170bb21f0 Add test for TestAuthenticatedEncryption and update code to work with test 2020-06-08 12:54:07 +02:00
Dario
ea18b3ca0a add Crypto/AuthenticatedEncryption to move code from model/User into own class, add app secret to server config 2020-06-07 21:36:17 +02:00
Dario
2a907d50e5 remove profiling code, update key generation algorithmus from KeyPairEd25519 to get same results like KeyPair 2020-06-07 19:32:43 +02:00
Dario
d8c9c91d0c profile complete sha512 generation 2020-06-07 19:13:46 +02:00
Dario
28c2830d75 adding some profiling code sha 512 2020-06-07 18:32:47 +02:00
Dario
82d599f950 Add test for new key pair ed25519 class, because optimized algo create other results than old implementation 2020-06-07 17:24:53 +02:00
Dario
0325a90dab add possibility to use ed25519 with only a pubkey 2020-06-05 16:49:14 +02:00
Dario
ae74352fc6 add back const with help of mutable shared mutex 2020-06-05 13:44:41 +02:00
Dario
c8c6667331 add to interface 2020-06-05 13:25:21 +02:00
Dario
92f1f79af9 Add Key Pair in new format, now a own class for every key type 2020-06-05 13:22:35 +02:00
Dario
004d019819 Update mutex, now using std::shared_mutex allowing reload of word list while server is running 2020-06-05 13:20:00 +02:00
Dario
7030333e91 move bin hex converter to lib folder 2020-06-04 16:43:11 +02:00
Dario
dcfd35b49a Add BinHexConverter, BinTextConverter from Gradido Node with changed interfaces and without base58 2020-06-04 16:41:16 +02:00
Dario
7518832bf4 Add GoogleTest via conan and first tests 2020-06-02 12:54:55 +02:00
Dario
1aeb506cd3 make it more modular 2020-06-01 19:13:38 +02:00
Dario
80cd472597 fix missing word in german 1 mnemonic 2020-05-30 12:44:01 +02:00
Dario
c375e131ed fix new word list 2020-05-30 10:02:58 +02:00
Dario
8502de4b1a Add second german mnemonic set with fixed casing 2020-05-30 09:32:27 +02:00
Dario
9f9bc0c1ef adding admin user password reset 2020-04-22 15:05:08 +02:00
Dario
90469fb94b adding debug mnemonic page 2020-04-06 11:45:00 +02:00
Dario
9c067ae8d8 add page for creating new passphrase and transfer funds 2020-03-29 19:11:28 +02:00
Dario
c9d1a0f268 update Session::detectSessionState and User::sign with temp code using as readable text saved passphrase for check and retrieve privkey if decrypt failed 2020-03-16 11:15:04 +01:00
Dario
a94f4a1abe fix multiple hash error 2020-03-09 12:37:06 +01:00
Dario
3a36059519 fix passphrase error 2020-02-28 13:27:17 +01:00
Dario
15a08227e6 adding second elopage webhook 2020-02-27 14:59:25 +01:00
Dario
6569517987 with debugging code 2020-02-27 12:32:21 +01:00
Dario
517059d648 fix passphrase generation, adding test to start 2020-02-27 12:26:35 +01:00
Dario
95f5460112 adding passphrase generation check 2020-02-27 12:06:57 +01:00
Dario
7468b5df29 adding transform passphrase page class 2020-02-26 17:46:46 +01:00
Dario
a7a1758db8 new passphrase generate code 2020-02-26 16:39:49 +01:00
Dario
fc22bbc1e0 update password reset 2020-02-25 14:53:54 +01:00
Dario
8a0bafcffc update german passphrase, adding texte for passphrase page, update style and translation system 2020-02-25 13:31:51 +01:00
Dario
c0e40f715d Update passphrase page 2020-02-20 17:01:22 +01:00
Dario
2e426f2748 adding admin check user backups 2020-02-18 11:38:14 +01:00
Dario
892d9eb2e2 fix passphrase needing space after end 2020-02-18 09:39:44 +01:00
Dario
a8579fb717 adding debugging passphrase 2020-02-18 08:43:28 +01:00
Dario
33927473ad implement task observer 2020-01-10 17:29:31 +01:00
Dario
987c820a5b little fixes 2019-12-18 19:44:53 +01:00
Dario
2910d85729 auto recover from corrupted mnemonic words by calling User::generateNewPassphrase 2019-12-13 14:17:45 +01:00
Dario
8fe5b1cc09 speed up build time 2019-11-16 18:36:04 +01:00
Dario
cd12c0fdbf fix syntax error 2019-11-03 14:21:46 +01:00
Dario
6bae595aa2 move some files to lib folder, adding memory management for often used binary memory blocks to prevent memory fragmentation 2019-11-03 12:22:35 +01:00