How to encrypt message or memo on Steem?

in #esteem7 years ago (edited)

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

Sort:  
There are 3 pages
Pages

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....

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

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.

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!

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 ?

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

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

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

nice post upvoted your vote is important for me @deshwal

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

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

Very Nice, i like it the your post, thanks

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

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...

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

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

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

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....

Good inovation for privacy.. thanks @good-karma

Great info thanks :)

Thank you for this very helpful information.

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

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

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

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

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.

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

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

There are 3 pages
Pages