Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt/Decrypt #4

Open
alexkunitsa opened this issue Aug 7, 2015 · 4 comments
Open

Encrypt/Decrypt #4

alexkunitsa opened this issue Aug 7, 2015 · 4 comments

Comments

@alexkunitsa
Copy link

I can't encrypt/decrypt messages. There is no error, but nothing happens. Method is called, but no callback.

 -[KBJSCore readFile:]:96: JSCore content:keybase.js, 1624538
 -[KBJSCore readFile:]:96: JSCore content:keybase-kbpgp-jscore.js, 19090

Can anybody help with that?

@alexkunitsa
Copy link
Author

Looks like problem was with weak reference GHWeakSelf.

@gabriel
Copy link
Owner

gabriel commented Aug 18, 2015

yeah you have to keep a strong reference to KBPGP... For example, you'll
see the test cases have to do this.

it's a flaw... but to be honest the whole project, running pgp javascript
in a runtime with an objective-c, is a bit of a hack

this project is not ideal...

I'm working at Keybase now BTW and we're working on a objective-c to go
library which should make this library obsolete. In fact I've stopped using
it myself.

On Tue, Aug 18, 2015 at 2:10 AM, Alex Kunitsa notifications@github.com
wrote:

Looks like problem was with weak reference GHWeakSelf.


Reply to this email directly or view it on GitHub
#4 (comment).

@alexkunitsa
Copy link
Author

Looks like this is the best iOS PGP library. I I tried almost all possible cases) There is only one thing left that I need to implement - encrypt/decrypt files

@gabriel
Copy link
Owner

gabriel commented Aug 18, 2015

yeah theoretically it should be possible since kbpgp.js supports files:
https://keybase.io/kbpgp/docs/buffers

Though I probably won't have time to implement it myself anytime soon,
sorry :(

On Tue, Aug 18, 2015 at 8:07 AM, Alex Kunitsa notifications@github.com
wrote:

Looks like this is the best iOS PGP library. I I tried almost all possible
cases) There is only one thing left that I need to implement -
encrypt/decrypt files


Reply to this email directly or view it on GitHub
#4 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants