Exemplo n.º 1
0
        public static string csGetLayout(this GridView gv)
        {
            MemoryStream ms = new MemoryStream();

            gv.SaveLayoutToStream(ms);
            var b = ms.ToArray();

            return(TCipher.BytesToBase64String(b));
        }
Exemplo n.º 2
0
 //public static string RSAEncrypt(string PlainText, string Key)
 //{
 //    byte[] plainBytes = TCipher.RegularStringToBytes(PlainText);
 //    return TCipher.BytesToRegularString(RSAEncrypt(plainBytes, Key));
 //}
 public static string RSAEncryptToBase64(string PlainText, string Key)
 {
     byte[] plainBytes = TCipher.RegularStringToBytes(PlainText);
     return(TCipher.BytesToBase64String(RSAEncrypt(plainBytes, Key)));
 }