11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How To: Create a Custom Encryption Permission 809(continued)}get {return (_permFlag & EncryptionPermissionFlag.Encrypt).Equals(EncryptionPermissionFlag.Encrypt);}// Set this property to true to allow decryption.public bool Decrypt{set {if(true == value){_permFlag |= EncryptionPermissionFlag.Decrypt;}else{_permFlag &= ~EncryptionPermissionFlag.Decrypt;}}get {return (_permFlag & EncryptionPermissionFlag.Decrypt).Equals(EncryptionPermissionFlag.Decrypt);}}// Set this property to true to use the DPAPI machine key.public bool MachineStore{set {if(true == value){_storePermFlag |= StorePermissionFlag.Machine;}else{_storePermFlag &= ~StorePermissionFlag.Machine;}}get {return (_storePermFlag & StorePermissionFlag.Machine).Equals(StorePermissionFlag.Machine);}}// Set this property to true to use the DPAPI user key.public bool UserStore{set {if(true == value){_storePermFlag |= StorePermissionFlag.User;}(continued)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!