Albnar's public key

1a93a17d51824a11bf7f0b93467f9fdbf4dff52df4f8c46f656e15127d52e1e43f00b743a36043b5b418e4d46dfb95921e0531b1f8b43c5d7d19fdb5557fe805

My Address generated with Geth:
9cea72005c2471b675498ed6e87f9c9209c67860

1 Like

Hello @albnar.2014! If you’re looking for an example for how to do the second part of the assignment, please check out this thread: Afzal's Public Key & Address from @afzal and @tintin -

As a reminder here’s step three of this week’s assignment:

Step 3: Send a secret message and decode it with another member of the community. You must use a SHARED SECRET and ALL the information must be published visibly on the community forum.

How will you create that shared secret? Use your creativity!

Perhaps you can use their public keys? So comment on someone else’s public key post and communicate with them. Perhaps you can implement a sort of diffie-hellman shared secret. Agree with them on what could be a common secret with all your communication happening publicly. Write a secret message, (make it worth the trouble, make it fun!) and publish it as a reply to their public key post. If you feel like it you can match with more than one person, perhaps you can replicate a “Whisper-like” protocol. What’s something interesting that becomes possible once you understand and implement a publicly creatbale shared secret?

Hi bilal, thank you for your advice. I am collecting and analyzing a lot of stuff related with this second part. It is really new land for me. I hope I will finish this and the third one. I am struggling with the Windows BSOD. I am considering seriously to migrate to linux.

1 Like

Lots of tools get easier there, you might not need to migrate, you can use a VPS to have access to a linux commandline :slight_smile:

Hi @albnar.2014 welcome aboard mate.

Using your publicKey, I have encrypted a message for you to decrypt.

Here is the encrypted message for your next steps:

{iv: “58a5996a1ac365c93dce22fa0814e211”, ephemPublicKey: “046b0eba80b0284249f14846ad77d7dd3a013522d2f915579d98f0d881844cf6bb725e376abb8ceff6be21fe4af04f2ed596ecf542c3d2209852bf58c0d5c4a45c”, ciphertext: “b70387bb80cf850ea6ba809e0426eacdef7c6f631e83d0e3a6dbda8c23ac40d0fffbfd6d859364d1656df99c6b92a2080fa9ef9289e274c769462971b1516a332387aeec5ad8753c3ed275f585975bd1788eb53f265b918e1151105ae7dcbf21e85d3846ae0dce5716e910c38fb2050050d169d72d7b1716a1bdf167701c0f9ff12485755169880d5e1c78b161a58df87373e21229aede019eb81f3be4b88090c4a4644b7542d23dbc0654f86d8acf69dea8d668c8f63d1208872e623c3ecba5e381651a0637fe688d5965085258247f97ca621fe6f3da9aa4720ca23b5c7070f994289e3e4a70731043c15543d9a57d846fcc32fe1a4a70f5e11a6f99ea1b39053ab92d4f75c74d7fc0e681fa4449b5”, mac: “cfdd2e83fee1659e8440eee983d9331fc1bf47140507bbb1f4becb111818fa80”}

Hi pkrasam,thank you for your encrypted message.
I am terrible sorry and totally confused. I have been playing with https://cryptii.com/pipes/aes-encryption, because I just began yesterday to learn Javascript in order to understand what I am doing. Now I see new things as ephenPubblicKey and mac.
Did you use eth-crypto? I suppose you are using 256, or 128 basis?
Could you give me some clues?
sorry again for my ignorance

1 Like

Hi @albnar.2014

Thanks for getting back to me on this thread.

No need to apologise, we are here to learn, and the community is very helpful.

Yes I did use eth-crypto and here is link: eth-crypto

Let me know where you’re stuck and happy to assist as much as possible.

Hi pkrasam,
thank you very much for your kind offer to help me. I started reading the tutorials of eth-crypto. It will take a while for sure until I become able to do something worth. Please do not wait for me.
I will do my best to catch you all in the next days. I will ask you for help if I get stuck.
Best regards

1 Like

Hi.
just a question. I am playing with the tutorial : Encrypt and sign a message, just to understand.
Running the script I get following error:
const encrypted = await EthCrypto.encryptWithPublicKey(
SyntaxError: await is only valid in async function.
Is there a synchronous function to replace await, or how can i do await works with a sync function?

If I get running the example from “Alice” and “Bob” I hope I can decode your message.

You should always call await inside an async function for example:

async myfunction ( /* whatever parameters*/ ){const encrypted = await EthCrypto.encryptWithPublicKey(/*whatever parameters*/);}

If you take a look at Nathan's public key, you can find a link to a sandbox, which has working as well as example Alice + Bob code.

2 Likes

Sent you some exploding kitties :wink: https://ropsten.etherscan.io/tx/0x8039bcdf860feb161c7101498ec4255fbbe017b60248ad54c188007724a8284c
(XCK) ExplodingCryptoKitties is LIVE