Lukas Burkhalter
Lukas Burkhalter
Hi 👋 You could switch to the [2.8.0 pre-release](https://github.com/ProtonMail/gopenpgp/releases/tag/v2.8.0-alpha.0), which bumps the versions of the dependencies.
> Hi! Kindly tell me if it is stable enough to use. Yes, the pre-release can be used. It adds support for the OpenPGP [crypto-refresh](https://datatracker.ietf.org/doc/draft-ietf-openpgp-crypto-refresh/) if enabled, which is not...
@grixxie A [version 3](https://github.com/ProtonMail/gopenpgp/tree/v3) of GopenPGP is in development, which allows setting a key expiration time in key generation.
@devasmith v3 is still under development and might still change. Nevertheless, it is possible to check out the current API. The `helper` package does not exists anymore in v3, instead...
Hi. This helper internally [calls](https://github.com/ProtonMail/gopenpgp/blob/453e81905b3a00fceeaad9fbed0d5af1f0099978/crypto/message.go#L94) `NewPlainMessageFromString(text string) *PlainMessage`, which does the following: ``` // NewPlainMessageFromString generates a new text PlainMessage, // ready for encryption, signature, or verification from an unencrypted...
Hi. `messagePGP` already contains a key packet with the encrypted session key. ``` keyPacket := messagePGP.GetBinaryKeyPacket() dataPacket := messagePGP.GetBinaryDataPacket() ... ... := helper.DecryptAttachmentWithKey(privkey, []byte("password"), keyPacket, dataPacket) ```
This method is intended for attachments where the key packet is stored in a different place than the file (data packet). If you just want to encrypt to a file,...
Hey @wussler! Appreciate your thoughtful review and the detailed suggestions. I've taken care of most of them and added comments where needed. If there's anything else that requires attention, let...
We should add the fix to the v2 API as well. - [x] Fix session key length generation in V2 API
Hi 👋 Thanks for pointing this out. It is possible to generate an Ed25519 PGP key as follows: ```go config := &packet.Config{ Algorithm: packet.PubKeyAlgoEdDSA, } entity, err := openpgp.NewEntity("test", "",...