fix arg_change

This commit is contained in:
Nikola Petrov
2024-02-04 20:47:07 +01:00
parent 4146bd9092
commit 09548dabd8
3 changed files with 7 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ void arg_change(Buffer &decrypted_buffer, Buffer &encrypted_buffer, std::string
return;
}
crypto.generate_key_and_iv_from_password(new_string.c_str(), new_string.size());
crypto.change_pass(new_string);
crypto.encrypt(&decrypted_buffer, &encrypted_buffer);
encrypted_buffer.save_to_file();
printf("Password changed\n");