We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af63fd6 commit 7f41ac1Copy full SHA for 7f41ac1
1 file changed
src/Helpers/KeyGenerators.cs
@@ -30,6 +30,12 @@ public static byte[] GenerateRandomIVKeyAsBytes(int length)
30
return randomBytes;
31
}
32
33
+ public static string GenerateRandomIVKeyAsString()
34
+ {
35
+ byte[] randomBytes = GenerateRandomIVKeyAsBytes(16);
36
+ return BitConverter.ToString(randomBytes).Replace("-", "");
37
+ }
38
+
39
/// <summary>
40
/// Generates a valid AES secret key with the specified key size.
41
/// </summary>
0 commit comments