Beispiel #1
0
 public static byte[] EncodingASCII(string buf, SymCryptography cryptoService)
 {
     return(Encoding.Unicode.GetBytes(cryptoService.Encrypt(buf)));
 }
Beispiel #2
0
 public static string DecodingASCII(byte[] buf, SymCryptography cryptoService)
 {
     return(cryptoService.Decrypt(Encoding.ASCII.GetString(buf)));
 }