Skip to content

Commit aa6cf91

Browse files
committed
add method to Convert Keys To Bytes in converter class
1 parent 10c5237 commit aa6cf91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Helpers/Converters.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ public static byte[] HexadecimalStringToByteArray(this string input)
3838
}
3939
return output;
4040
}
41+
42+
public static byte[] ConvertKeysToBytes(this string data)
43+
{
44+
return Encoding.UTF8.GetBytes(data);
45+
}
4146
}
4247
}

0 commit comments

Comments
 (0)