void CloudCheck_Detected(string hash, string virusname, string filename) { try { // hex (b64(sea(text))) CSNetworkConnection.PostData(SEA.ConvertToHex(SEA.EncryptToBase64(Encoding.UTF8.GetBytes("hash=" + hash + "|name=" + virusname + "|file=" + filename))), "cloud", Location); } catch { } finally { } }
public void PostData(string data, string type) { try { // hex (b64(sea(text))) CSNetworkConnection.PostData(SEA.ConvertToHex(SEA.EncryptToBase64(Encoding.UTF8.GetBytes(data))), type, Location); } catch { } finally { } }
public Network() { try { CloudCheck.Init(); CloudCheck.Detected += new CloudDetected(CloudCheck_Detected); CSNetworkConnection = new Connection(); SEA.InitializeKey(2048, Encoding.UTF8.GetBytes("5SA9H3QDG2/*653V9Q+ez1g9*e6vcxg*tufd688yfdhy4gu7789e89ez56789y7t7/rt7e87t8tr787ç/78"), 57); ReceiveAsync recv = new ReceiveAsync(AsyncReceive); recv.BeginInvoke(null, null); } catch { } finally { } }