Score:2

Secure option for (hybrid) encryption of a secret key using JWE

il flag

I want to encrypt a private key $sk$ (it's actually an RSA private key in PKCS#8 format) with another person's (and/or my) public key $pk_A$ for secure storage. With JWE, it is possible to use hybrid encryption: we generate a random symmetric key $k$ to encrypt $sk$ and then encrypt $k$ with $pk_A$.

I would use AESGCM+RSAOAEP, though I've read that AESGCM should not be used for Key-Wrapping... but this isn't exactly what I'm doing here, and I'm not sure the warnings apply. Could anyone give me some advice? Should I just treat $sk$ like some normal data and happily go for AESGCM+RSAOAEP?

sources:

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.