public static string DecodingASCII(byte[] buf, AsymCryptography cryptoService) { return(cryptoService.Decrypt(Encoding.ASCII.GetString(buf))); }
public static byte[] EncodingASCII(string buf, AsymCryptography cryptoService) { return(Encoding.Unicode.GetBytes(cryptoService.Encrypt(buf))); }