Ejemplo n.º 1
0
        public static string GetSignedString(string json)
        {
            string text      = ChatSessionUtils.EncodeReplaceStrip(json);
            string hexString = ChatSessionUtils.HashAggregate(CryptoUtility.ComputeHash(text, "87e278e1dd0a48649af0b77dc80a5ef1"));
            string text2     = ChatSessionUtils.ConvertHexStringToBase64(hexString);

            return(text2 + "." + text);
        }
Ejemplo n.º 2
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.ConvertHexStringToBase64(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }