Skip to content

How do I import/export key as bytes array? #1245

Answered by twiss
CMEONE asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CMEONE 👋 No, this isn't really possible, sorry. For one, to encrypt or decrypt messages, you also need the subkey material. Then, for it to be the same OpenPGP key, you also need a bunch of metadata (creation time, etc). If you want something short, it might be better to use a raw ECDH key. E.g. see https://github.com/dchest/tweetnacl-js. Obviously this won't be compatible with OpenPGP, though.

Replies: 16 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CMEONE
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@larabr
Comment options

@AndreasGassmann
Comment options

@larabr
Comment options

@AndreasGassmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1242 on February 22, 2021 19:56.