hello friends
what is session keys and how to they do it anyone can explain brefly
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Siddhartha SharmaRank #2,254 · 626 reputationPosted May 3, 2019, 6:42 AM EDT
Nilesh SawardekarRank #648 · 3.7K reputationPosted May 3, 2019, 6:42 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted May 4, 2019, 2:10 AM EDT
Shraddha Patel176 reputationPosted May 6, 2019, 7:02 PM EDT
A session key is a single-use symmetric key used for encrypting all messages in one communication session. A closely related term is content encryption key (CEK), traffic encryption key (TEK), or multicast key which refers to any key used to encrypt messages, as opposed to other uses, like encrypting other keys (key encryption key (KEK) or key wrapping key).
Session keys can introduce complication into a system. However, they solve some real problems. There are two primary reasons to use session keys:
- Several cryptanalytic attacks become easier as more material
encrypted with a specific key is available. By limiting the amount of
data processed using a particular key, those attacks are made more
difficult.
- asymmetric encryption is too slow for many purposes, and all secret key algorithms
require that the key is securely distributed. By using an asymmetric
algorithm to encrypt the secret key for another, faster, symmetric
algorithm, it's possible to improve overall performance considerably.
This is the process used by PGP and GPG.
Like all cryptographic keys, session keys must be chosen so that they cannot be predicted by an attacker, usually requiring them to be chosen randomly. Failure to choose session keys (or any key) properly is a major (and too common in actual practice) design flaw in any crypto system.