Exemplo n.º 1
0
        public string StringToEncryBytes(string str)
        {
            try
            {
                string result = "";
                byte[] buffer = NetLib.GetEncryBytes(str);
                foreach (var item in buffer)
                {
                    result += item + "|";
                }

                if (!string.IsNullOrEmpty(result))
                {
                    result = result.Substring(0, result.Length - 1);
                }

                return(result);
            }
            catch
            {
                return(null);
            }
        }