How to encrypt message or memo on Steem?

in esteem •  2 months ago

Earlier I wrote about upcoming private messaging with encryption on eSteem. In this post, let's dive into some technical stuff and encryption and decryption of memo and any messages with your Steem keys.

steem-js library for browsers (web) and node applications already have built-in features for you to easily use this.

var encoded = steem.memo.encode(privateWifAccountA, publicWifAccountB, `#This is my private message`);

Above code would return long encrypted text which can be used to send via any medium.

var decoded = steem.memo.decode(privateWifAccountAOrB, encoded);

Encrypted text then decoded on receiver or sender end to see content of message. Steem blockchain is open but your encrypted messages/memos/notes are much safer because only receiver and sender can read them or any other person who has access to private key of either side.

You can already test memo encryption within Steemit. Go to Wallet and Transfer some funds to any account and include memo message with # hashtag front of message. This way only you and receiver can read the memo message, nobody else knows or sees what you guys are talking about.

For example, I have sent encrypted memo to @demo account few hours ago.

Here is what you see on blockchain:

Here what was actually sent, decrypted on my wallet

Simple enough, right?! Well, there are some practical edge cases where applications should be able to decrypt messages even after user has changed their private keys. But will write more on that, later when feature is live.

Either case, encrypted private messages are possible right now and future dedicated applications can make use of this simple feature we have.

Steem On!

This post has been scheduled with eSteem


Feel free to reach out if you have questions, issues, suggestions, feature requests on eSteem.


info@esteem.ws | Website | Steemit.chat | Telegram | Twitter | Github


vote, reblog, follow, vote witness good-karma

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  trending

It is amazing to see this encryption on memo.
Thanks @good-karma.
I know there is more to steemit than writing, posting, curating, etc.
witness to the moon.
Thanks

That's so cool, just use a hashtag in front of it to keep it private, code is so interesting! Thanks so much for the update on eSteem - all of my many photographs I post upload in seconds now! 👍👍

·

If the process is easy to use, the mainstream will use and adopt it.
Or the steemit make it as default, all transactions is encrypted. That would be perfect.

Follow me @Yehey
Thank you,
CEO, Yehey.com

This is very cool. I assume it's using some form of public key encryption with Steemit keys. I'll be trying this out soon. I don't mind paying a small amount to send a message and that should reduce spam, although we are seeing some spam using small transfers. Maybe people could set a minimum needed to send them a message. Private messages have been a much-requested feature.

Thanks

·

Indeed, set a minimum amount at least for the wallet notifications would be great. Because I think we are going to have more and more spam.

Good post

I knew that this feature was available but I wasn't aware of the code. Huge thanks for sharing that!

Both useful and informative as always from @good-karma

Great article! It's always nice when someone takes the time to actually explain everything in such detail :)

Very useful article for safe our data on steemit thanks to share it.

·

Yes, it is a wonderful post... Let's follow each other....

Nice post friend. thanks for sharing

I've been waiting for this feature ever since I started using Steemit. So, I can't tell you how good news this is for me. Thank You @good-karma for this long-awaited feature. Steem on!

Good inovation for privacy.. thanks @good-karma

really useful information it enhance meaning of privacy in the platform. Thanks

Great info thanks :)

Thank you for this very helpful information.

I always respect your ideas about this platform....

This is very cool. I assume it's using some form of public key encryption with Steemit keys. I'll be trying this out soon. I don't mind paying a small amount to send a message and that should reduce spam, although we are seeing some spam using small transfers. Maybe people could set a minimum needed to send them a message. Private messages have been a much-requested feature.
https://steemit.com/@anis365
follow me for follow back
Please upvote all my post.
for upvote back
Thank you.........

thanks for sharing very useful

Greet Post

Thanks for sharing good-karma

Thanks for this, very important and good information to keep our data and messages private thank you, upvoted!!! Also resteemed!

Waao very interesting code,do you write this code ?

hey man how you doin.
great information

ooh nice, this come in handy...

Definitely the best way to keep spoky eyes away from my wallet transaction...

Nice one @good-karma
Bookmarking this post for later reference..

Gat to try my own encryption...

encrypting things now a days are so more common between us bcoz every one wants to be safe but this encryption is no more value able as some black hackers will ruin your data by decrypting it.

·

If they hack it then you may lose your Steem too

nice post upvoted your vote is important for me @deshwal

A really nice post about cryptography. Thanks @good-karma

Thanks @good-karma. Apps eSteem to steemit. I love eSteem.

Very good . . I use esteem. . Thankyou @good-karma 🙏

I'd love to get with you sometime @good-karma. I appreciate your knowledge and I hope to learn more from you.

I'm super intrigued with developing dapps & such. Let me know if your up for it :)

Cheers!

Interesting post my friend!

Would you like to prove that your posts are very good but your votes are not that you expected? Would you like a chance to prove you're the best? Welcome to LAST USER, this event is designed for the champion of his best category (referring to his most used tag) and WIN 8 SBD! (to participate you must transfer 1 STEEM DOLAR to @elnigromante), do you accept the challenge?, MORE INFORMATION CLIC HERE!

lastuser22.PNG

a good post I really like your posts

I am still confused how to use the stem key @good-karma

How mysterious! Thanks for this, I'll make a note for later when I'm understanding more and more about how Steemit works. So far, so good.

So, if I send someone an encrypted message, will the unencrypted text automatically show on their end? Or would they have to take action to unencrypt it?

amazing, is there any probability that some way or another anybody can figure out the code to perceive what really is inside?

·

Not if it's good encryption. Should be as secure as your Steemit funds

Thanks info @good-karma ...
upvote and me resteem post.

It's a very useful post. You do a really good job. Thank you !

Very useful. Currently it says "This memo is public" above the input. There should be an info about this functionality.
Submitted a simple pull request: https://github.com/steemit/condenser/pull/1736

excellent! Thank you

This is what I call unique content!

It is amazing to see this encryption on memo.
Thanks @good-karma

love dat D nxt generation exchange of commodity it all started with bitcoin now Steemit Blow it up. What do you you think

Wow, I missed that facility! Very interesting, thanks!

I wonder why if we're supposed to use it, there isn't an 'Private' check-box in the Steemit transfer form. It seems a bit strange to me.

Hmm Steemians could send their email addresses encrypted and receive important updates to their inbox!

Read the title and sparked my interest. Who even has the brains to find this stuff out.

You just spoke chinese to me.. and i am not fluent lololol

I wasn't aware you could do this. This is very helpful. Thanks!

nice technical skills you have..keep it up.@good-karma

Nice!, i guess this feature be useful somehow...

Very Nice, i like it the your post, thanks

VERY USEFUL INFORMATION, especially for new users like me!!!! THANKS FOR SHARING!!
Steem on!!
Greetings!!

It's great, until now all memo's were public.

good post and your sharing

Whoa... could this be used for private encrypted replies in a thread?

Excellent useful post!

yes ... i will save this post, i know i will need it soon ...
thanks @good-karma

is privateWifAccount the same thing as memo key in the wallet?
I saw this Wif mentioned here and there but I can't figure out what it means.

·

Yes it is private key of memo (other keys of course can also be used). Wif stands for Wallet Import Format...

·
·

Thank you 🍺

Wow the code yoi hsve mention is so interesting. I guess this will help so many people. Thanks for sharing such informative post with us

This would be very beautiful!!!!,,,,,,,//////

Excellent! Just saw your post and the previous one about private messages.
Actually, I posted this article about private messages 3 days ago.

If I understood well, you integrated the encode/decode directly in eSteem application via javascript. That is great! Great ease of use.

Still one remark : it is not totally private as we can still see who is sending to who, when, and how frequently.

Also, do you know if this will be integrated in the website ? are you related to Steemit.com devs somehow ?

This was awesomely well-written and easy to understand. Thumbs up @good-karma!

Thanks So much , it will help me cause am new here.

Thanks for the info dude.

work very well
I love it and love to follow you
vest plz follow me @mudatnad and give me want value from esteem.t
thank you

Congratulations @good-karma!
Your post was mentioned in the hit parade in the following categories:

  • Upvotes - Ranked 4 with 583 upvotes
  • Pending payout - Ranked 3 with $ 259,94

Helpful, thanks.

Good post, thanks @god

Thanks for information, i wait for next news about it
Have a great day

this is just amazing <3

I just tried this and I get "Error: Unable to encrypte memo, missing memo private key" (I raised an issue about the spelling). I used my active key as I normally do for a transfer, but I assume it's the destination account's key that matters when encrypting, although it must encrypt for the sender too if you can see it.

·

On Steemit encryption works with private memo key, yes. When you login with private active key or posting key, it is not possible to get private memo key out of it. But if you logged in with master password it should work fine.

·
·

Ah, I wondered about that. I know it's generally not a good idea to use the master password. We've been wondering where the memo password would fit in. I'll try it again later

·
·
·

I had also this error. It is like everybody is login with their owner key, whereas only the posting key is needed (most of the time).

·
·

Encryption works with my master password. Thanks

I see you voted up posts by fathakam. He is mass tagging people and it's annoying them. I wouldn't encourage that behaviour

·
·
·

When you post with eSteem, apparently you get automatic votes from @good-karma and a few others... So this is automated.

wow, is there any possibility that somehow anyone can crack the code to see what actually is inside?

·

Yes, maybe? Let's try`?

Let's follow each other....

Great content, you have here, just upvoted you, would visit your page time to time.

thank for your sharing!

Very innovative, I need to try it out. Thanks a lot

Very good @good-karma.
I like your post.
You are the greatest..

Great, I still have to figure out about a lot of processes here but I'll manage in the end.

Thank you!!
Enjoy @nature.art!

Be happiness!

The update on esteem... just wow. Thank you. Also thanks for providing us with this cool little tip/trick. This is one reason I love SteemIt, you can learn at least one thing new everyday.

Keep up the great work for the community!

Hi friend I didn't get you earlier, from now I am going to read your text to know from you as I need some help, Now wish you good luck good health and happiness.

Thank you so much for sharing, this is very help full. Have a great day!

This is built into steemjs? I don't see anything in the docs, or in the source for that matter, that indicate that this method is available. This is good news - any other hidden gems that we don't know about? :)

Amazing and informative post indeed. Upvoted andfollowing u as always. Please review my new post on meditation if you find some time and provide your feedback if possible.

Thanks good-karma, I have problems to fully understand everything in your post since I am not so hot regarding IT. Just also letting you know that I voted you as my witness. Also, please comment on my last post, would appreciate your thoughts and I am sure you will find it interesting:

https://steemit.com/teamaustralia/@lucky.digger/every-millionaire-can-only-own-19-steem

good information.

I am very lucky to follow you. Because every information you share, it's very useful.

Thanks @good-karma

hi, nice to read about you.
i am, sajedul ahmed, from bangladesh,am also new on steemit and welcome you to steemit.
i have followed you. so, can also follow me plz.and plz upvoted my post.
best of luck...

I follow you. I will help you @bakabou159704

Thank you for the tutorial.

Friends follow me and support me I am new u will vote me up and I will also vote u

Your post is helpful so it me friends so that I can also be success with the help of you all friends I am from India where are u from guys

That's pretty awesome

Gimana cara nya postingan kita biar banyak yang opvote? @good-karma

is there a way to do this hidden encryption with just steemit.com from my laptop or do you need esteem? I am not very tech savvy or good with computer language sorry.

This is an alternative to email. It is private but maybe some would like to hide transfers of lower than a certain threshold to control spam.