From 0c6ba8e1d5564fd3e56ceb1494b22954386f58dd Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Fri, 26 May 2017 10:43:51 -0400 Subject: [PATCH] Change ordering of fields for password generation --- libraries/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 19b6ddd7..e8eedded 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -3380,7 +3380,7 @@ brain_key_info wallet_api::suggest_brain_key()const } pair wallet_api::get_private_key_from_password( string account, string role, string password )const { - auto seed = account + role + password; + auto seed = password + account + role; FC_ASSERT( seed.size() ); auto secret = fc::sha256::hash( seed.c_str(), seed.size() ); auto priv = fc::ecc::private_key::regenerate( secret );