Skip to content

Commit ba5983c

Browse files
committed
feat: extract SessionKeyGenerator
1 parent ec7a82e commit ba5983c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

EccSDK/SessionKeyGenerator.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Org.BouncyCastle.Math;
2+
3+
namespace EccSDK;
4+
5+
public class SessionKeyGenerator
6+
{
7+
public static BigInteger GenerateSessionKey()
8+
{
9+
return new BigInteger(256, new Random());
10+
}
11+
}

0 commit comments

Comments
 (0)