Пример #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);
        }
Пример #2
0
 public unsafe static long $Invoke5(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.HashAggregate((byte[])GCHandledObjects.GCHandleToPinnedArrayObject(*args))));
 }
Пример #3
0
 public unsafe static long $Invoke4(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.GetSignedString(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }
Пример #4
0
 public unsafe static long $Invoke3(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.GetSessionUrlFromChannelResponse(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }
Пример #5
0
 public unsafe static long $Invoke2(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.EncodeReplaceStrip(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }
Пример #6
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.CreateSessionString(Marshal.PtrToStringUni(*(IntPtr *)args), Marshal.PtrToStringUni(*(IntPtr *)(args + 1)), Marshal.PtrToStringUni(*(IntPtr *)(args + 2)), Marshal.PtrToStringUni(*(IntPtr *)(args + 3)), (ChatType)(*(int *)(args + 4)), Marshal.PtrToStringUni(*(IntPtr *)(args + 5)))));
 }
Пример #7
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ChatSessionUtils.ConvertHexStringToBase64(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }