Re: [openpgpjs] OpenPGP.js on Android

2014-07-27 Thread Tio Oscar
2014-07-27 8:24 GMT-03:00 Tankred Hase m...@tankredhase.de: We released Whiteout Mail for Android. Feel free to test drive the Alpha (runs on Android 4.0+): https://play.google.com/store/apps/details?id=io.whiteout.WhiteoutMail The code is on GitHub if you're interested. As always, thanks

Re: [openpgpjs] Extract in-line signed blocks from string

2014-07-30 Thread Tio Oscar
there is some other relevant code you can search around for. -tim On 7/30/14, Tio Oscar tios...@gmail.com wrote: Hi. I need to find in-line messages (Signed and Encrypted blocks) from a string. I'm ussing regular expresions: var PGPBlockExp = /(-+BEGIN PGP MESSAGE-+[^-]+-+END PGP

Re: [openpgpjs] (no subject)

2014-10-21 Thread Tio Oscar
2014-10-21 16:39 GMT-03:00 Fernando Schuindt f.schuind...@gmail.com: I don't know whats happening with your email list, but your message don't have subject. Talking about your question, did you tried to convert the buffer objects to json and them encrypt them once it's became a string? var

Re: [openpgpjs] (no subject)

2014-10-21 Thread Tio Oscar
1: I think this is irrelevant. 2: this is a fact, but with base64 you have 4 bytes each 3, better that json encoding. btw, PGP compress by default, and base64 is cleantext (more compress ratio). I think you should test it. 3: Idem 2. El 21/10/2014 19:09, Maria Mary Jane mariajan...@gmail.com

Re: [openpgpjs] Error on worker: console is not defined

2014-11-13 Thread Tio Oscar
2014-11-12 20:51 GMT+00:00 Paweł Górny pa...@pawelgorny.com: Which browser? IE? Google for this error, maybe you need to create console.log function in your script This is cordova/phonegap project, This runs on android with webkit. The problem is where the privatekey is not correct, the

Re: [openpgpjs] v1.0.0 release

2015-03-17 Thread Tio Oscar
2015-03-15 8:26 GMT-03:00 Tankred Hase m...@tankredhase.de: Hi everyone, since the api has been stable for a while now and since there was also another security audit of the OpenPGP.js codebase, we've decided to release v1.0.0. This is our first stable release and we will be using semantic

Re: [openpgpjs] Decryption of the binary message

2015-04-23 Thread Tio Oscar
this works? El jue., 23 de abr. de 2015 a la(s) 3:22 p. m., Paweł Górny pa...@pawelgorny.com escribió: yep, I had to do it too. var message = openpgp.message.readArmored(openpgp.armor.encode(binaryContent)); W dniu 21.04.2015 o 07:11, Barry de Graaff pisze: I looked for this too, but

Re: [openpgpjs] bad performances for long payloads (typical file uploads)

2015-07-24 Thread Tio Oscar
El vie., 24 de jul. de 2015 a la(s) 7:17 p. m., Giovanni Pellerano giovanni.peller...@evilaliv3.org escribió: Hi all, as you know in the GlobaLeaks project we are working on trying to improve the performances of openpgp.js with particular reference to long payloads (file attachments) and

Re: [openpgpjs] bad performances for long payloads (typical file uploads)

2015-07-24 Thread Tio Oscar
Seeing this commit[0] I ask: Is there any reason to use Uint8Array instead of Buffer? actually I mean it from the ignorance of whether or not this improves something. Especially considering that the block sizes used for encryption are usually of 32 or 64 (or 4 and 8 octets), then the best option

Re: [openpgpjs] Critical vulnerability in S2K

2015-10-05 Thread Tio Oscar
Sorry, this bug only affect the keys generated by the OpenPGP.js lib? El lun., 5 de oct. de 2015 a la(s) 4:39 a. m., Thomas Oberndörfer < tho...@mailvelope.com> escribió: > Hello, > > a vulnerability in the S2K function of OpenPGP.js allows to produce a > predictable session key without knowing

Re: [openpgpjs] getFingerprint() and gtKeyId()

2015-12-13 Thread Tio Oscar
var getFingerprint = function (key) { return key.primaryKey.fingerprint; }; El sáb., 12 de dic. de 2015 a la(s) 13:03, Andrew escribió: > There are two functions in public_key.js - getFingerprint() and getKeyId(). > I would like to run the public key through both these

Re: [openpgpjs] getFingerprint() and gtKeyId()

2015-12-13 Thread Tio Oscar
og(openpgp.key); > //this returns: Object { Key: Key(), readArmored: readArmored(), generate: > generate(), getPreferredSymAlgo: getPreferredSymAlgo() } > > any suggestions? > > On Sun, Dec 13, 2015 at 6:14 AM, Tio Oscar <tios...@gmail.com> wrote: > >> var getFingerprint = funct

Re: [openpgpjs] getFingerprint() and gtKeyId()

2015-12-13 Thread Tio Oscar
var pubKey = foundKeys[0]; foundKeys = null; var getFingerprint = function (key) { // openpgp.key <- Class // key <- Instance received by params return key.primaryKey.fingerprint; }; console.log(getFingerprint(pubKey)); El dom., 13 de dic. de 2015 a la(s) 23:36, Tio Oscar &l

Re: [openpgpjs] publicKeyId from message

2015-12-17 Thread Tio Oscar
There is not docunented, but there are a method called toHex: Keyid.prototype.toHex = function() { return util.hexstrdump(this.bytes);}; In your case: console.log(pgpMessage.packets[0].publicKeyId.toHex() ); El jue., 17 de dic. de 2015 a la(s) 18:03, Andrew escribió: > I

Re: [openpgpjs] publicKeyId from message

2016-01-07 Thread Tio Oscar
KeyId().toHex(); >> } >> console.log('publicKeyId '+getKeyId(pubKey)); >> } >> >> I'm a bit confused by your "PGP key" what is that? >> >> I was hoping that I could extract the publicKeyId from the message and >> use that to determine what pu

Re: [openpgpjs] OpenPGP.js v2.0.0 Release

2016-02-19 Thread Tio Oscar
Congratulations! I love knowing Uint8Array now used throughout !!! El sáb., 13 de feb. de 2016 a la(s) 13:35, Tankred Hase escribió: > Hi everyone, > > v2.0.0. was released today. Here are the release notes: > > https://github.com/openpgpjs/openpgpjs/releases/tag/v2.0.0