diff --git a/Password_manager/source/arg_func.cpp b/Password_manager/source/arg_func.cpp index 1198592..bba7450 100644 --- a/Password_manager/source/arg_func.cpp +++ b/Password_manager/source/arg_func.cpp @@ -112,6 +112,7 @@ std::optional arg_new_password(Buffer& decrypted_buffer, Buffe } else { + printf_s("Input new password: \n"); password = get_user_password(); if (password.empty()) { @@ -220,10 +221,11 @@ void arg_print_all_p(Buffer& decrypted_buffer, std::string& user_pass) Index* index = (Index*)decrypted_buffer.buffer; LoginInfo* pass = (LoginInfo*)(decrypted_buffer.buffer + sizeof(Index)); + printf_s("\n"); for (size_t i = 0; i < index->count; i++) { - printf_s("label: %s\t\t", decrypted_buffer.buffer + pass[i].label + index->offset); - printf_s("username: %s\t\t", decrypted_buffer.buffer + pass[i].username + index->offset); + printf_s("label: %-10s\t\t", decrypted_buffer.buffer + pass[i].label + index->offset); + printf_s("username: %-10s\t\t", decrypted_buffer.buffer + pass[i].username + index->offset); printf_s("password: %s\n", decrypted_buffer.buffer + pass[i].password + index->offset); } }