Security code snippets (10)

How to encrypt/decrypt using asymmetric algorithm RSA

Published: 7. February 2012 | Updated: 7. February 2012
Categories: Encryption
Tags: C# Security

How to encrypt/decrypt using symmetric algorithm

Published: 2. February 2012 | Updated: 2. February 2012
Categories: Encryption
Tags: C# Security

How to request for administrator permissions

Published: 31. January 2012 | Updated: 31. January 2012
Categories: Windows
Tags: C# Security Windows

How to calculate file checksum

Published: 4. November 2011 | Updated: 4. November 2011
Categories: Files Security
Tags: C# File System Security Windows

How to get current Windows user

Published: 13. December 2008 | Updated: 26. October 2011
Categories: Authorization
Tags: C# Security Windows Winforms

How to convert SecureString to string

Published: 30. September 2011 | Updated: 30. September 2011
Categories: Converting Security
Tags: C# Security Text Windows

How to generate cryptographically random data

Published: 8. January 2009 | Updated: 8. January 2009
Categories: Security
Tags: C# Security

How to protect data using user or machine credentials

Published: 5. January 2009 | Updated: 5. January 2009
Categories: Encryption Windows
Tags: C# Security Text Windows

How to encrypt / decrypt file for current Windows user

Published: 16. December 2008 | Updated: 16. December 2008
Categories: Encryption Files
Tags: C# File System Security Windows

How to create MD5 from string

Published: 14. December 2008 | Updated: 14. December 2008
Categories: Security
Tags: C# Security Text