Security code snippets (23)

How to display X.509 certificate dialog

Published: 28. December 2014 | Updated: 28. December 2014
Categories: Security
Tags: C# Security

How to validate X.509 certificate

Published: 28. December 2014 | Updated: 28. December 2014
Categories: Security
Tags: C# Security

How to get begin and expiration date from X.509 certificate

Published: 28. December 2014 | Updated: 28. December 2014
Categories: Security
Tags: C# Security

How to download X.509 certificate from url

Published: 28. December 2014 | Updated: 28. December 2014
Categories: Security
Tags: C# Security

How to export X.509 certificate

Published: 8. June 2014 | Updated: 8. June 2014
Categories: Security
Tags: C# Security

How to create X.509 certificate from raw data (bytes)

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Security
Tags: C# Security

How to create X.509 certificate from signed file

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Security
Tags: C# Security

How to create X.509 certificate from .cer file

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Security
Tags: C# Security

How to get code sign certificate from assembly

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Security
Tags: C# Reflection Security

How to get public key token from assembly

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Reflection Security
Tags: C# Reflection Security

How to calculate checksum from stream

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

How to calculate text checksum

Published: 12. January 2014 | Updated: 12. January 2014
Categories: Security
Tags: C# Security

How to prevent opening multiple instance of application

Published: 11. January 2014 | Updated: 11. January 2014
Categories: Winforms WPF
Tags: C# Security Threading Windows Winforms WPF

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