You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 14:46:29 +09:00
transferred from trunk/Generation3 of lidgren-network
This commit is contained in:
19
UnitTests/EncryptionTests.cs
Normal file
19
UnitTests/EncryptionTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Lidgren.Network;
|
||||
|
||||
namespace UnitTests
|
||||
{
|
||||
public static class EncryptionTests
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
byte[] salt = NetUtility.ToByteArray("59d7304da9b97e2a9d38");
|
||||
byte[] verifier = NetSRP.ComputePasswordVerifier("user", "password", salt);
|
||||
|
||||
Console.WriteLine("Result: " + NetUtility.ToHexString(verifier));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user