Skip to content

Question/Feature Request: Is Encryption/Description of text with SSH Key possible? #527

@gerion0

Description

@gerion0

I tried to find a possibility for encrypting and descripting text via an SSH key pair but only found functions to sign and verify text. Is ecryption/decryption implemented?

This would be the corresponding openssl function:

$ ssh-keygen -f path/to/id_rsa.pub -e -m PKCS8 > /tpm/ssh_key.pem
$ echo "some text" | openssl rsautl -encrypt -pubin -inkey /tmp/ssh_key.pem > encrypted.txt
$ openssl rsautl -decrypt -inkey ~/.ssh/id_rsa < encrypted.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions