I had a break in writing technical articles, because I need some time to organize two Steem Meetups (in Wrocław and in Warsaw), and to give a talk about Steem in Łódź.
But finally I am back on track regarding my Steem Security series, so today I am able to publish 3rd articles from this series. If you didn't read my earlier articles about different aspects of security of your steem account, you can find list of those articles on the bottom of this article.
Real password and keys: demo
So, last time we learnt about why private keys are needed. This time we will learn how they are generated.
You already have seen in my 1st post in a series a demo gif/video, where I showed how to login to an account with a private key instead of a password. During this demo I also showed, that at the time of recording I used password P5KB2ir4BaDTeeBe5SUW16F6NYGeYSVaUBn261kDPLGGCSiNahtm
to log in on my noisy3
demo account.
Now I want to show you, that you actually don't have to type your master password on Steemit website, to generate all your keys. You can generate them being totally offline!
How to locally generate all Steem users keys from master password
With some help of python code and steem library, we can write something like this:
from steembase.account import PasswordKey
account = 'noisy3'
password = 'P5KB2ir4BaDTeeBe5SUW16F6NYGeYSVaUBn261kDPLGGCSiNahtm'
key_types = [
'posting',
'active',
'owner',
'memo',
'foo_bar'
]
for key_type in key_types:
private_key = PasswordKey(account, password, key_type).get_private_key()
public_key = private_key.pubkey
print('Private ' + key_type + ' key: ' + str(private_key))
print('Public ' + key_type + ' key: ' + str(public_key) + '\n')
This gives us:
Private posting key: 5JLMze1sUVPhUBwTVjZyQhFMGfbN5KB7nqHfKjXuN5GUTYTbYFy
Public posting key: STM6GkXgEKTYc7gNv1GWJ5ZseyESHQnN7nr3rxdo5sBjzWQcdMyKy
Private active key: 5JFfMWjWMjnhu6vJKB2uUwUaLCws9JotHzLB8wkVEZjsZnSzDTv
Public active key: STM5uLTFYpPK4XVLMe16uuQFdW1Vo2MzN9UPqHQKjePwB76NnS9qk
Private owner key: 5JKjBjfRVZaf8H5w8XgiB6HfEH2SFJXUJL3QA6mteg5uQ3qRW9M
Public owner key: STM7iZnny8bvNRd6v6nx25XG6ijAKZs1ANvtuqTN2gjSYWXHC8Jgy
Private memo key: 5JvpThC3DwjHkupj6jnT5pnFW21Bsj3g4GhxhLLtM2WNsV2ynPw
Public memo key: STM5uEy2yYnoqVY9ksfkMbbY3UH4qFygARn2SW7PFJ4cRErHbH7Vh
Private foo_bar key: 5KJQP53B4MPHCWBQ8Xm9ydhKmjqrouRuf8UWWEZjHtkgmrtNCc5
Public foo_bar key: STM7hNqe6DJmXsqaDG8poaDVAvQx59EgWWQUbVLRUfi2Ab7mCvsnJ
So as you can see, private posting key is exactly the same like in my demo gif/video above:
From technical point of view, from your password can be generated even new type of keys, like Private foo_bar
key and Public foo_bar
key :)
This article belongs to series of articles which describes security on Steemit:
- What is the difference between a password and a private key(s) on Steemit? How to make your account more secure, by using them correctly.
- Public and Private Keys - how they are used by Steem, making all of these possible?
- How to generate all Steem user's keys from master password, without a Steemit website, being OFFLINE (this article)
- How to set own password, which is not generated by Steemit
- How passwords are stored by Steemit in your browser, and why it is secure.
- How to setup multisig/multiple authorities for your account
- ...
Make sure to follow my account, if you don't want to miss any of these :)
This is great - resteeming cause many keep asking about it!
Like I tell most users, keep your private key offline and stored safely, you'll only need your posting and active key when using Steemit generally.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for reSteeming @acidyo.....otherwise it would have been missed. Cheers.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
next article will be probably about: how to set own password (any length), without a Steemit website :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice! Now I can finally change my password to hunter2 !
Reference
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I am changing all my passwords to "incorrect", guess why
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
LOL that's too funny!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
So the error message reminds you what it is :p
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
We have a winner! You just won 0.00000000001 SBD!!!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Niiice! You sent me 9x more SBD than I actually won, lol! I'm gonna buy an island now
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
lol :))
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
that would be so great
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for resteeming this! I otherwise would not have seen this useful post!!
You're right about keeping the private key offline and stored safely!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@acidyo
tip! link
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @acidyo! You have just received a 0.1 SBD tip from @sneakgeekz!
@tipU - send tips by writing tip! in the comment and get share in service profit :)
By upvoting this comment you support the service - thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Two months ago I scoured steemit for an answer to this exact question and it did not exist. Thank you for you for this. It is currently the first and only post I have bookmarked :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
It EXISTED. its just that Steem has terrible search engine. Steemwiki has all the answers now.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for posting @noisy.
This is the kind of information Steemians can use. Cheers.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@noisy you deserve a tip! 0.3 link
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @noisy! You have just received a 0.3 SBD tip from @imperfect-one!
@tipU - send tips by writing tip! in the comment and get share in service profit :)
By upvoting this comment you support the service - thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is very helpful, thanks. I just started experimenting with the python Steem library for some ideas of my own.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This comment has received a 6.45 % upvote from @buildawhale thanks to: @buildawhale.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is some interesting stuff you show us in this post thank you. Good to know that I don't need my master password but only the active and posting key.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I see Ubuntu <3
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This great news. That means in case the steemit website suffers a ddos which is isn't very likely, you still get access to the blockhain with your private keys. Thanks for sharing this great information. We need this type of education for the community.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@tipU - send tips by writing tip! in the comment and get share in service profit :)
By upvoting this comment you support the service - thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good news and interesting thank you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@noisy thanks bro junst now i saved all of my keys offline after knowing that one of our community member @fredrikaa got his account stollen
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for sharing @noisy . I Will read it first.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I really appreciate this post @noisy. I'm pretty new here and was having a bit of trouble understanding the differences between all the passwords. Thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
that, you do not need to use Steemit, to manage your private keys ;)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Very useful to know,thanks for sharing.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow this is so much interesting. It's been a long time now i've been trying to do most of all this cause am actually a new steemian. But today you've tought me some parts of this. Thank you for sharing👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You were in Wroclaw, I love this city. been there several times for work. Did you like it?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I study at Wrocław University of Science and Technology, so I know the city very well. Even after my studies, when I moved to city located next to Wrocław (Oława), so visited Wrocław every day for next 4 years due my job.
In other words, of course I love WrocLove ;)
BTW, if you are sometimes in Poland, consider joining our meetup group. We already organized two meetups in Wrocław and Warsaw, and for sure there will be more in the future :) People in meetup group are notified about upcoming events :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
That seems handy -- but also scary. Does it not mean that some other person can generate my password also?
Forgive me if it's a foolish question; I am a good computer user but the nitty-gritty complexities like this are far above my level and outside my field.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Don't worry. It is always better to ask, if you do not know something ;)
Nope. Your password and your account are safe as long as you keep them private. But if you will publish your password anywhere, then someone else (even being offline) will be able to generate from that password all type of keys to your account.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Until quantum computers start brute forcing our passwords. :(
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
then every ciphered connection and every cryptocurrency will be in danger, but... only to a moment when it will be upgraded. Cryptography is fairly new science, there are plenty new solutions to discover.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hehe yeah. There is also this:
https://coinmarketcap.com/assets/quantum-resistant-ledger/ :D
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Upvoted done :)
Wonderful post.. Keep on the good job.
I now follow you.
Please, have a look into my blog may you like any of my posts :)
https://steemit.com/home/@asmaasema/5upb6x-preventing-birth-defects-steps-to-take-before-and-during-pregnancy
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Love this for security purposes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for this valuable post and series. I will be resteeming, upvoting and tipping.
tip! post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
meep
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Check out the newest post from @sneakgeekz: Singapore July 2017 Blockchain 2.0 Master Class and follow if you like the content :)
@tipU - send tips by writing tip! in the comment and get share in service profit :)
By upvoting this comment you support the service - thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow, I'm glad one of the people I follow re-steemed this post. Now I know to follow you too.
Thanks for the amazing information. I'm looking forward to reading more in your series! .. and whatever other cool stuff you decide to post :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I learn New things everyday on Steemit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Follow back bro
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Pozdrowienia z wypoka! tip! 0.3
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
no way
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Always use the command line if you can. But one alternative is @xeroc's paper wallet:
https://github.com/xeroc/steem-paperwallet/releases/
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great tech hack! - now everyone is deleting their private keys offline --lol
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This nice post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@noisy, I got
BTS
prefixes in the output of the python script. I guess I have an old library or something.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
always use virtualenv, and always freeze your dependencies ;)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@noisy, thank you very much for this info!!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
tip!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Beep beep. Hi @satfit!
You have used tip! in your comment - that`s my magic word for sending tips ;)
Click here if you wish to learn more!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Yes, great postings, posts like this have been my long time, now i feel safer ... thank you very much @noisy
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is very useful thank you:)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is great....
Thanks you!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Yah @acidyo is right ....This is great - resteeming cause many keep asking about it!
Like I tell most users, keep your private key offline and stored safely, you'll only need your posting and active key when using Steemit generally.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for taking the time to write this article with some useful informations about how to generate generate all Steem user's keys from master password, without a Steemit website, being OFFLINE. All the steps are clearly shown in the gift you made which is very easy to understand and follow.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
very interesting
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Is a good practice
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great info, thanks for sharing! I'm now following.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Very nice ! Reesteeming it because its a good tutorial !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received a 6.06 % upvote from @buildawhale thanks to: @buildawhale.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Another step towards decentralization. Thank You! :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Being new to steemit and all, i found this very useful. Thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for the code! Up-Voted, Followed, Re-Steemed!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks for writing this.. you don't how much I wanted this information in a way I can understand.. thank you :) upvoted resteemed and appreciated @noisy
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I don't know much about codes but this is great news for everyone who knows, resteemed. Cheers!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
A very important information for all the steemians, especially for those who just joined.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Interested
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
So I can copy your code in Microsoft Word and it will generate my keys? Cool!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@Noisey
All you programmers need to make some simple GUI's.
Especially for Steemit when the target audience hopefully drawn away from facebook, reddit etc
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
it.s amazing
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
wao great sir its really informative and i learn alot of things from you :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I have this problem => from: can't read/var/mail/steambase.account.
How can I solve?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit