Python KDF: clave maestra y derivados

I need help with the following problem statement -

The encrypted file can be opened by following combinations (either any 2 DK, or 1 MK)-

DK1 + DK2
DK1 + DK3
DK2 + DK3
DK1 + DK2 + DK3

Any heads-up with Python KDF logic. Any good documentation/ reference will also suffice the purpose. I tried deriving keys with KDF(MK, "pass1") -> DK1 but then the combination logic didn't work.

preguntado el 12 de junio de 14 a las 10:06

Por favor no poste cruzado -

1 Respuestas

The general class of problem is called "intercambio secreto". In this instance, one solution would be to encrypt the file with a single key K, then generate and attach three encrypted versions of K, each encrypted by one combination of two DKs. (I assume that all DKs can be derived from MK.)

Note that questions like these, which are more about cryptographic protocols than about programming, would probably be better asked on cripto.

Respondido 13 Abr '17, 13:04

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.