Tag: code

  • 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. […]

  • How to create a SHA1 hash in C#

    Here is short code snippet to create a SHA1 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. […]

  • How to create a md5 hash in C#

    Here a quick example how to create from an string an md5 hash in c# and output it as string. 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 […]