elective-stereophonic
elective-stereophonic
Message Decryption Failed singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: Message Decryption Failed  (Read 3035 times)

anteater

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 10
    • View Profile
Message Decryption Failed
« on: July 23, 2015, 10:47:23 am »

Hi, I'm trying to decrypt an arbitrary message using the api but I constantly get: {"errorDescription":"Decryption failed","errorCode":8}

I am using curl (I've broken into lines to make it easier to read and account and passphrase are changed):

curl "nxt?nonce=32baf09f32d8cb3bdb9ce14dea8c3ff3e5b02da37f52bea90a09c2177bb2ecba \
&account=NXT-VG56-6TY3-9ABC-9MT79 \
&secretPhrase=thisisnotmypassword \
&requestType=decryptFrom \
&decryptedMessageIsText=false \
&uncompressDecryptedMessage=true \ &data=9dc518422a576ce7d61b7a52785be81fd83ccb34cf1f517683e4fa60a17c93c4d14010ababad964ff087f31268fc8c440f7397efebbbeaad9bbe88bdf8505d76"

I have triple checked the account / passphrase etc and have tried various combinations of uncompressDecryptedMessage and decryptedMessageIsText being true, false or omitted.

Nothing works, please help?
Logged

TheCoinWizard

  • Hero Member
  • *****
  • Karma: +97/-55
  • Offline Offline
  • Posts: 614
  • Learn by questioning everything!
    • View Profile
Re: Message Decryption Failed
« Reply #1 on: July 23, 2015, 10:51:20 am »

NXT-VG56-6TY3-9ABC-9MT79,
Could not find your account address.

humm, okay then, makes sense

account and passphrase are changed):
Logged
Welcome to the After Nxt Calendar era...
Which started in the year 222 of the French Republic, Frost month, on the fifth day of the first week, better known as the 2456621th Julian day,
even better known as 24 November 2013 at 12:00:00 UTC.

anteater

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: Message Decryption Failed
« Reply #2 on: July 23, 2015, 10:55:17 am »

Ok I've just sent a message to a test account (passphrase is test):

transaction id: 14743902041005234083

{"encryptedMessage":{"data":"3fa3a85167f0f6acdd88f50a90417b1797e39f44a0f35b6c556a978a949ed405687ac7df465bb6753b2f4def181588a566dcfd5e57b9eb2acc2f200ac851c070","nonce":"4d6427f8e54a1e1b9164ce6d095985d067dfc3a40121a484bfbc072e158bc30d","isText":true,"isCompressed":true},"version.PrunableEncryptedMessage":1,"version.ArbitraryMessage":0,"encryptedMessageHash":"7fa051375919427bcf54c96f220cdefcfac1f9517fa953ac269cef2217538279"}

curl "/nxt?nonce=4d6427f8e54a1e1b9164ce6d095985d067dfc3a40121a484bfbc072e158bc30d&account=NXT-E8JD-FHKJ-CQ9H-5KGMQ&secretPhrase=test&requestType=decryptFrom&uncompressDecryptedMessage=true&decryptedMessageIsText=true&data=3fa3a85167f0f6acdd88f50a90417b1797e39f44a0f35b6c556a978a949ed405687ac7df465bb6753b2f4def181588a566dcfd5e57b9eb2acc2f200ac851c070"

and I still get the Decryption Failed message?
Logged

TheCoinWizard

  • Hero Member
  • *****
  • Karma: +97/-55
  • Offline Offline
  • Posts: 614
  • Learn by questioning everything!
    • View Profile
Re: Message Decryption Failed
« Reply #3 on: July 23, 2015, 11:02:29 am »

I am good, it says:
test from anteater
I logged in with version 1.5.13
Logged
Welcome to the After Nxt Calendar era...
Which started in the year 222 of the French Republic, Frost month, on the fifth day of the first week, better known as the 2456621th Julian day,
even better known as 24 November 2013 at 12:00:00 UTC.

TheCoinWizard

  • Hero Member
  • *****
  • Karma: +97/-55
  • Offline Offline
  • Posts: 614
  • Learn by questioning everything!
    • View Profile
Re: Message Decryption Failed
« Reply #4 on: July 23, 2015, 11:04:48 am »

also tried it in
http://localhost:7876/test?requestTag=MESSAGES

{
    "encryptedMessageIsPrunable": true,
    "decryptedMessage": "test from anteater",
    "requestProcessingTime": 9
}
Logged
Welcome to the After Nxt Calendar era...
Which started in the year 222 of the French Republic, Frost month, on the fifth day of the first week, better known as the 2456621th Julian day,
even better known as 24 November 2013 at 12:00:00 UTC.

anteater

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: Message Decryption Failed
« Reply #5 on: July 23, 2015, 11:05:22 am »

I can read it in the client too, but I am failing to decrypt with the api?
Logged

anteater

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: Message Decryption Failed
« Reply #6 on: July 23, 2015, 11:11:12 am »

Finally figured it out, the account field is the account of the sender not the recipient.

But the wiki says: account is the account ID of the recipient

I will attempt to alter the wiki with a correction. Thanks for your help!
Logged

TheCoinWizard

  • Hero Member
  • *****
  • Karma: +97/-55
  • Offline Offline
  • Posts: 614
  • Learn by questioning everything!
    • View Profile
Re: Message Decryption Failed
« Reply #7 on: July 23, 2015, 11:22:23 am »

my pleasure, though i doubt i helped much  ;)
Logged
Welcome to the After Nxt Calendar era...
Which started in the year 222 of the French Republic, Frost month, on the fifth day of the first week, better known as the 2456621th Julian day,
even better known as 24 November 2013 at 12:00:00 UTC.
 

elective-stereophonic
elective-stereophonic
assembly
assembly