-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
43 lines (35 loc) · 1.17 KB
/
Program.cs
File metadata and controls
43 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using NAudio.Wave;
using NETConnect;
using NETConnect.CustomConsole;
using NETConnect.Encryption.Crypt;
using NETConnect.MyExtensions;
using NETConnect.MyExtensions.Encryption;
using NETConnect.Peers;
using NETConnect.Shared.Multicast;
using System.Net;
using static NETConnect.Encryption.Crypt.RSACrypt;
namespace NETConnectAPP
{
internal class Program
{
static void Main(string[] args)
{
//RSAExport Keys = RSACrypt.CreateExport(RSAKeySize.VerySecure);
//string t = "this is a test";
//byte[] Encrypted = t.ToUTF8Byte().EncryptRSA(Keys.PublicKey);
//Console.WriteLine(Convert.ToBase64String(Encrypted));
//byte[] decrypted = Encrypted.DecryptRSA(Keys.PrivateKey);
//Console.WriteLine(decrypted);
// SECOND BRANCH PUSH TEST!
Console.WriteLine("C# NETConnect");
Console.ReadKey();
Peer peer = new Peer(IPAddress.Any, 0);
while (true)
{
//var Helper = Client.Packer;
//NETConnect.Audio.Audio.StartStreaming(ref Helper);
Thread.Sleep(1000);
}
}
}
}