Hi,

I'm unable to have the signClearMessage method to work. I try to call it in the 
following script :

if( oPrivateKey['keys'][0].decrypt("123456789")){
    var text = "this is a message to sign";
    var signed = window.openpgp.signClearMessage(oPrivateKey,text);
}

oPrivateKey has been generated by openpgpjs and is read from the ascii-armored 
text stored in the browser. The decrypt function works (I mean if I use the 
wrong password, it returns false)

The content of signed is below :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

this is a message to sign
-----BEGIN PGP SIGNATURE-----
Version: OpenPGP.js v0.5.1
Comment: http://openpgpjs.org


=twTO
-----END PGP SIGNATURE-----

it doesn't seem to matter if I decrypt the key or not, or if I use a key at 
all. I even tried to call the method with an empty object and got the same 
result.

Is the method broken or am I doing anything wrong?

Sincerely,

Dorian

_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to