• RSA: Encrypt in .NET & Decrypt in Python

    RSA: Encrypt in .NET & Decrypt in Python

    So… one of my current projects required the following actions: asymmetrically encrypt a string in .NET using a public key and decrypt it in a python script using a private key. The problem that I’ve encountered was that, apparently, I...


  • C# Prevent Decompilation by Decrypting Source at Runtime

    C# Prevent Decompilation by Decrypting Source at Runtime

    Hello world! Today we continue the “Trolling the Decompiler” series (first part here: Prevent Reflector from Decompiling) but now with a more serious approach - this one should work on any decompiler. The point is: it is rather difficult to...


  • C# Password Protected File

    C# Password Protected File

    In this article…I’ll talk about how to protect a file with a password (any file type) - without using ZIP or any other archivers. The file will be encrypted and then ‘attached’ to an executable, which will be later used...


  • C#/PHP Compatible Encryption (AES256)

    C#/PHP Compatible Encryption (AES256)

    Finding a way to encrypt messages in C# and decrypting them in PHP or vice versa seems to be a “challenge” for many users. I wrote this tutorial to provide some help with this: below, you can find how to...


  • C# Safe Encryption/Decryption using DPAPI

    C# Safe Encryption/Decryption using DPAPI

    Data Protection API aka DPAPI is a neat service provided by Windows Operating Systems (newer than Windows 2000) that safely encrypts and decrypts user credentials, using the Triple-DES algorithm. You have to supply the data as byte array in order...