0
$\begingroup$

Are there any two encryption function(s) where encryptB(encryptA(data, keyA), keyB) == encryptA(encryptB(data, keyB), keyA).

The two functions may be related or identical.

The two keys must be distinct and unrelated.

$\endgroup$
1
  • 1
    $\begingroup$ Many classical ciphers, stream ciphers, AES-CTR... $\endgroup$
    – kelalaka
    Oct 13, 2023 at 20:48

0

Browse other questions tagged or ask your own question.