Please enable JavaScript.
Coggle requires JavaScript to display documents.
C# Encryption & security (Code access security (Own code is not…
C# Encryption & security
Encryption elements:
- Text to encrypt
- Encryption algorithm
- Encryption key
Encryption/decryption
Symetric. Only one key.
Key is used to encrypt and decrypt.
Not 100% sure the reciever can get key safely.
Asymetric. Two keys.
One key public, one key private.
All encryption with public key
Decryption is done with private key.
-
-
Certificates
-
INTEGRITY OF MESSAGE
A sends encrypted message to B
- A hash message to send
- A encrypt the hash with private key and send
- B gets the message and decrypt with As public key (has message and hash code)
- B hash the same message and check the hash code match
-
-
-
Code access security
Own code is not trusted, must provide proof
-
-
Checks:
Access to protected ressource
Access to unmanaged code
Checks permissions
Caller code have a digital signature
-
Declarative CAS:
[FileIOPermission(SecurityAction.Demand, AllLocalFiles = FileIOAccessPermissionAccess.Read)]
public void MyMethod() { .. }
-