diff options
author | login (tilde.temm) <login@tilde.team> | 2023-01-03 14:00:00 +0000 |
---|---|---|
committer | login (tilde.temm) <login@tilde.team> | 2023-01-03 14:00:00 +0000 |
commit | 4d5a62ed30e9ea311d0521a4bd0c1bf4d7e117ae (patch) | |
tree | 9aee0b94b166b7f5cec661633c3390da898307c0 | |
parent | 6c68da10520094c08329b0cccbcb19acc2b8ebd2 (diff) | |
download | tcoin-4d5a62ed30e9ea311d0521a4bd0c1bf4d7e117ae.tar.gz |
Weakened memory-hardness of scrypt
Weakened memory-hardness of scrypt to cater to memory requirements of tilde.team
-rw-r--r-- | tcoin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcoin.cpp b/tcoin.cpp index 0ef1c45..3dc5b3a 100644 --- a/tcoin.cpp +++ b/tcoin.cpp @@ -1631,13 +1631,13 @@ int main(int argc, char *argv[]) { std::string salt_file = std::string(TCOIN_SALT_PATH) + get_username() + std::string("_salt.txt"); std::string password_file = std::string(TCOIN_PASS_PATH) + get_username() + std::string("_password.txt"); - execl(TCOIN_SCRYPT_PATH, "scrypt", "enc", "-m", "0.25", "-t", "10", salt_file.c_str(), password_file.c_str(), NULL); + execl(TCOIN_SCRYPT_PATH, "scrypt", "enc", "-m", "0.125", "-t", "5", salt_file.c_str(), password_file.c_str(), NULL); } if(argc==2 && !strctcmp(argv[1], code2)) { std::string decrypted_password_file = std::string(TCOIN_PASS_PATH) + get_username() + std::string("_decrypted_password.txt"); std::string password_file = std::string(TCOIN_PASS_PATH) + get_username() + std::string("_password.txt"); - execl(TCOIN_SCRYPT_PATH, "scrypt", "dec", password_file.c_str(), decrypted_password_file.c_str(), NULL); + execl(TCOIN_SCRYPT_PATH, "scrypt", "dec", "-t", "15", password_file.c_str(), decrypted_password_file.c_str(), NULL); } if(argc==2 && !strctcmp(argv[1], "pcoin_list")) { |