using System.Security.Cryptography;
public static string GetManufacturerShopwareId(string value)
return ($"manufacturer_{value.Trim().ToLowerInvariant()})").GetMd5Hash();
public static void Main()
var id1 = GetManufacturerShopwareId("pewag");
var id2 = GetManufacturerShopwareId("König");
var id3 = GetManufacturerShopwareId("GoSoft");
public static class StringExtension {
public static string GetMd5Hash(this string value)
return Md5Helper.CreateMd5Hash(value);
public static class Md5Helper {
public static string CreateMd5Hash(string value)
using var hash = MD5.Create();
byte[] hashValue = hash.ComputeHash(Encoding.UTF8.GetBytes(value));