1
$\begingroup$

enter image description here

Is a different encryption and decryption algorithm used for every secret key, or can I use the same encryption and decryption algorithm for different keys?

$\endgroup$
1
  • $\begingroup$ The point of separating the key from the algorithm is precisely so that everybody can safely use the same algorithms with their own keys. $\endgroup$ Commented Jan 24, 2017 at 22:03

2 Answers 2

4
$\begingroup$

You can use the same ones (which is good, because otherwise you'd run out of them pretty fast). In fact, when a cipher allows you to choose a key, that's basically the same as giving you a new pair of encryption/decryption algorithms for every key.

Usually, when designing a system that uses symmetric encryption, a small set of ciphers are used. For example, the popular NaCl library only uses Salsa20+Poly1305 and AES-GCM.

$\endgroup$
0
0
$\begingroup$

It depends from the algorithm that you will use. For example DES algorithm has a little different way for Encrypt/Decrypt for every key but Vigerene does not.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.