forked from alexmelyon/nanoboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
31 lines (28 loc) · 980 Bytes
/
Program.cs
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
using System;
using System.Security.Cryptography;
using System.Text;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using System.Drawing;
using System.Threading;
namespace nboard
{
class MainClass
{
public static void Main(string[] args)
{
/*
var bytes = Encoding.UTF8.GetBytes("Ёлки, палки.");
new PngStegoUtil().HideBytesInPng("containers/dummy.png", "upload/test.png", GZipUtil.Compress(bytes));
var read = new PngStegoUtil().ReadHiddenBytesFromPng("upload/test.png");
Console.WriteLine(Encoding.UTF8.GetString(GZipUtil.Decompress(read)));
var p = NanoPost.Create("Проверка1");
var packed = NanoPostPackUtil.Pack(new []{p});
NanoPost[] unpacked = NanoPostPackUtil.Unpack(packed);
Console.WriteLine(unpacked[0].Message);
*/
new ApplicationStarter();
}
}
}