Tag: c#

  • What is the PuppeteerSharp Library for C#?

    What is the PuppeteerSharp Library for C#?

    If you are a developer working with C#, you might have come across the PuppeteerSharp library. In this blog post, we will explore what PuppeteerSharp is and how it can be used in C# development.

  • Comparing and Finding Differences between Strings in C#

    Comparing and Finding Differences between Strings in C#

    If I Have 2 Strings in C#: How to Compare Them and Show the Differences? Comparing strings in C# is a common task, and sometimes you may need to find the differences between two strings. Whether you want to highlight the variations or simply extract the dissimilar parts, this blog post will guide you through […]

  • Wie ich mit C# und VS Code mit der Entwicklung beginne

    Wie ich mit C# und VS Code mit der Entwicklung beginne

    Die Programmiersprache C# und der Code-Editor VS Code sind eine beliebte Kombination für die Entwicklung von Anwendungen. In diesem Blog-Beitrag werde ich Ihnen zeigen, wie ich mit C# und VS Code starte und Ihnen einige nützliche Tipps geben.

  • C# SHA1: Wie generiere ich es?

    C# SHA1: Wie generiere ich es?

    SHA1 ist ein bekannter kryptografischer Hash-Algorithmus, der häufig in der Programmierung verwendet wird, um Daten zu verifizieren und sicherzustellen, dass sie während der Übertragung oder Speicherung nicht verändert wurden. In C# gibt es verschiedene Möglichkeiten, SHA1-Hashes zu generieren. In diesem Artikel werden wir uns damit beschäftigen, wie Sie SHA1 in C# generieren können.

  • How to Use C# Multithreading in Async Programming: An Example

    How to Use C# Multithreading in Async Programming: An Example

    In today’s fast-paced world, efficient and responsive software is crucial. One way to achieve this is through multithreading and asynchronous programming. In this article, we will explore how to leverage C# multithreading for async programming, and we will provide a practical example to demonstrate its usage.

  • C# MD5 Hash String: Secure Data Encryption

    C# MD5 Hash String: Secure Data Encryption

    Are you looking for a reliable method to securely encrypt data in your C# applications? Look no further than MD5 hash string. In this article, we will explore the power of MD5 hash string and how it can be used to protect sensitive information.

  • C# Hash String using SHA256 Algorithm

    C# Hash String using SHA256 Algorithm

    In today’s digital world, data security is of utmost importance. One common technique used to protect sensitive information is hashing. Hashing allows you to transform data into a fixed-size string of characters, making it nearly impossible to reverse-engineer the original data. In this article, we will explore how to hash a string using the SHA256 […]

  • How to Send a Tab Key in C# to a Window

    How to Send a Tab Key in C# to a Window

    Sending a tab key to a window using C# can be a useful technique when automating tasks or interacting with applications programmatically. Whether you’re developing a desktop application or working on a test automation project, knowing how to send a tab key can help you navigate through controls and elements within a window. In this […]

  • Tutorial about dinktopdf .NET Core example in C#

    Tutorial about dinktopdf .NET Core example in C#

    Are you looking for a reliable way to generate PDF documents in your .NET Core application using C#? Look no further! In this tutorial, we will explore the dinktopdf library and walk you through a step-by-step example of how to use it to generate PDFs.

  • Example of Using MD5 in C#

    Example of Using MD5 in C#

    In this blog post, we will explore an example of using MD5 in C#. MD5 is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value. It is commonly used to verify the integrity of data and to store passwords securely.

  • How to Create SHA512 in C# Example

    How to Create SHA512 in C# Example

    Are you looking for a way to create SHA512 hashes in C#? In this article, we’ll guide you through the process step by step. SHA512 is a widely used cryptographic algorithm that generates a 512-bit hash value. It’s commonly used for password storage, digital signatures, and data integrity checks.

  • How I Start Developing with C# and VS Code

    How I Start Developing with C# and VS Code

    If you’re looking to dive into the world of C# development and prefer using VS Code as your IDE, you’ve come to the right place. In this blog post, I’ll walk you through the steps I took to get started with C# development using Visual Studio Code.

  • How to Set the Right File Header for PDF Files in C# and PHP

    How to Set the Right File Header for PDF Files in C# and PHP

    When working with PDF files in C# and PHP, it is essential to set the correct file headers to ensure proper handling and functionality. In this blog post, we will explore the steps to set the right file header for PDF files in both programming languages. By following these guidelines, you can optimize your PDF […]

  • HTTP header CSV type

    The right HTTP header content-type for CSV files is the following: The complete HTTP header: In PHP you should use for an CSV file download the following lines at the start of the file: In C#/ASP .Net you use the following code in the code behind file:

  • C# useful DateTime extensions

    Here are some useful C# DateTime extensions, i hope you enjoy it: You can call it from any class like this little example, don’t forget to add the using in the top of you class. Elapsed The function Elapsed returns the time elapsed between now and the DateTime object. If you need a simple stopwatch, […]

  • C# Sha512 hash example

    Here a quick example how to create a Sha512 hash in C#. We are using the functions from System.Security.Cryptography, so don’t forget to add the using at top of you file.

  • C# Base64 decode and encode

    C# Base64 decode and encode

    Here is an quick example how to encode/decode a string to base64. This example works already on .net core 2.0 or above.

  • Example SHA256 hash in C#

    Example SHA256 hash in C#

    Here is short code snippet to create a SHA256 hash in C#. The only difficult is to convert from string to byte array and back again. So i have to method, one accept the byte array direct and returns a byte array, the second method handles the convert from string to byte array and back again. […]