NAME: Secure Communication CATEGORY:
Wireless Context Patterns
- CONTEXT: You are writing a CLient-Server code for a mobile device application where the exchange
transfer protocol should be considerably safe and secure.
- PROBLEM: How to provide confidentiality in client server communication.
- FORCES:
- The security layer should be transparent to the user.
- User should not worry about the security.
- Should use an efficient and unbreakable encryption algorithm and not just any algorithm.
- It must be practically impossible to find private key or public key.
- Generation of session key must be done in the least amount of time.
- SOLUTION:
- Get a private and public key using RSA Algorithm.
- Use a random session key.
- use a combination of symmetric and asymmetric cryptography.
- DIAGRAM: