singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
180 stars 69 forks source link

Subkey usage #67

Closed veldjmaxis closed 6 years ago

veldjmaxis commented 6 years ago

Hi, I'm trying to use this lib for backend and openpgp.js for frontend but I can't make those two libs to work together. I think js lib needs to have subkey for encryption coz when I try to encrypt message in js using key generated by Your lib I get exception 'Could not find valid key packet for encryption in key'. Can You help me and tell how to generate key with subkeys?

gitBC commented 6 years ago

see #40

singpolyma commented 6 years ago

@veldjmaxis If #40 doesn't help you, feel free to comment there with more context or questions.