Search
 Coin Explorers
Search
 Coin Explorers

Portfolio

Markets

Project Reviews

Founder Stories

Features

Guides

News

Videos

Let’s stay in touch:

News

Changing the private key for an EOS account – cc32d9 – Medium

When interacting with EOS mainnet, especially at its early stage, you may suspect that your private key could be leaked. For example, you pasted it into a web application that you don’t fully trust…

Jun 16, 2018 · 1 min read
  • Share on X
  • Share on Facebook
  • Share on Linkedin
Changing the private key for an EOS account – cc32d9 – Medium

Changing the private key for an EOS account When interacting with EOS mainnet, especially at its early stage, you may suspect that your private key could be leaked. For example, you pasted it into a web application that you don’t fully trust. With the cleos command-line tool, you can easily change the private key for your account in a short time and at no cost. You would, however, need to compile it on your Linux machine using the build instructions. The operation is two-step, as you need to replace the owner and active key authorizations. Key access to an account is defined by its permissions (which we are going to modify with the below commands). # create a new keypaircleos create key # example the keys created:# Private key: 5HpyLPEY6RcCJMnwMyx5vtdYHk3FKxR5LS4W2nVzd3F3XFtjzNL# Public key: EOS6wNARDGZsgh1tC4eTsabxj65CU4xA4RdaQkrsBvneVCsJ924Zo # unlock your wallet and add the new private key. Add # space in front of the command, so that it does not # get saved in Bash history cleos wallet import 5HpyLPEY6RcCJMnwMyx5vtdYHk3FKxR5LS4W2nVzd3F3XFtjzNL # Now issue two transactions that modify the owner and # active keys: cleos -u https://eos.greymass.com/ set account permission MYACCOUNT owner EOS6wNARDGZsgh1tC4eTsabxj65CU4xA4RdaQkrsBvneVCsJ924Zo -p MYACCOUNT@owner cleos -u https://eos.greymass.com/ set account permission MYACCOUNT active EOS6wNARDGZsgh1tC4eTsabxj65CU4xA4RdaQkrsBvneVCsJ924Zo owner -p MYACCOUNT@owner Now you can save your new keys in a secure place and discard the old keys. You can also remove the old key from your wallet: cleos wallet remove_key OLDPUBKEY


  • Share on X
  • Share on Facebook
  • Share on Linkedin

Related News

Bitcoin has officially entered the Guinness World Records for a number of entries, the first of which is being recognized as the First Decentralized Cryptocurrency
News

Bitcoin has officially entered the Guinness World Records for a number of entries, the first of which is being recognized as the First Decentralized Cryptocurrency

Bitcoin now has multiple entries in the Guinness Book of World Records, including most valuable and the first decentralized cryptocurrency.

Oct 19, 2022

740 Million in Bitcoin exits exchanges, the biggest outflow since June's BTC price crash
News

740 Million in Bitcoin exits exchanges, the biggest outflow since June's BTC price crash

The technical outlook, however, remains bearish for Bitcoin, with the price eyeing a run-down toward $14,000 in Q4/2022.

Oct 18, 2022

Bitcoin Wins the Guinness World Record for First Decentralized Cryptocurrency
News

Bitcoin Wins the Guinness World Record for First Decentralized Cryptocurrency

Bitcoin has been honored as the oldest and most valuable crypto, while El Salvador is recognized as the first country to adopt it as legal tender. 

Oct 18, 2022

 Coin Explorers

PortfolioMarketsProject ReviewsFounder StoriesFeaturesGuidesNewsVideosTerms & ConditionsPrivacy Policy

Powered by

 Coin Explorers

Copyright © 2025 - All Rights Reserved