BitShares Forum

Other => Graveyard => Marketplace => Topic started by: JA on October 24, 2015, 08:15:42 pm

Title: [PHP] memo decryption script
Post by: JA on October 24, 2015, 08:15:42 pm
I need a php script to decrypt memos with a private memo key. (if thats even possible)
I am way too noobie to do it myself.


https://github.com/xeroc/python-graphenelib/blob/master/docs/memo.rst
here is a python script from xerocs python graphenelib.
https://github.com/xeroc/python-graphenelib/blob/master/graphenebase/memo.py

Feel free to send me a offer via pm.
Title: Re: [PHP] memo decryption script
Post by: jsidhu on October 24, 2015, 10:47:50 pm
What is the memo encrypted with? can you not use your pvt key to decrypt? ecies uses sep256k1 for asymmetric key encryption
Title: Re: [PHP] memo decryption script
Post by: sittingduck on October 25, 2015, 12:15:35 am
Aes with ecdh
Title: Re: [PHP] memo decryption script
Post by: jsidhu on October 25, 2015, 04:58:28 am
Aes with ecdh
Isnt that what the encrypted private keys in bitcoin use?... Its based on encrypting the private key based on a phrase..

Ecdh is a secure key exchange algo, Secure key exchange algorithms are used to exchange our keys securely via a non secure channel.

ECIES is an Integrated Encryption scheme, it.is a hybrid encryption scheme which provides semantic security against chosen plain text and chosen cipher text attacks.

For memos you would use ecies not  ecdh if you using existing keypairs from bts

If you need to prove the sender sent the message use ecdsa for this