Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug report: PGP Sign operation creates encrypted output, while it should be signed cleartext. #2697

Description

@engrach

The PGP Sign function currently uses the box function from kbpgp. The box-function is meant for encryption. While it is functional it is not creating the correct output. The clearsign function from kbpgp should be used instead. This will create an RFC4880-compliant message with human-readable text and a PGP signature.

To Reproduce
Select the PGP Sign funtion.
Supply a private key and passphrase
Add some random input

The result is a PHP message with the header:
"-----BEGIN PGP MESSAGE-----"

Using the clearsign will create a message with the header:
"-----BEGIN PGP SIGNED MESSAGE-----"

Additional context
I have created PR #2696 to change the function from kbpgp.box to kbpgp.clearsign,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions