Ejemplo n.º 1
0
 // Token: 0x060008D4 RID: 2260 RVA: 0x0004B04C File Offset: 0x0004924C
 public static byte[] EncryptAttributes(Attributes attributes, byte[] nodeKey)
 {
     byte[] array = ("MEGA" + JsonConvert.SerializeObject(attributes, Formatting.None)).ToBytes();
     array = array.CopySubArray(array.Length + 16 - array.Length % 16, 0);
     return(Crypto.EncryptAes(array, nodeKey));
 }
Ejemplo n.º 2
0
        public static byte[] EncryptAttributes(Attributes attributes, byte[] nodeKey)
        {
            string data = "MEGA" + JsonConvert.SerializeObject(attributes, Formatting.None);
            byte[] dataBytes = data.ToBytes();
            dataBytes = dataBytes.CopySubArray(dataBytes.Length + 16 - (dataBytes.Length % 16));

            return EncryptAes(dataBytes, nodeKey);
        }
Ejemplo n.º 3
0
 public Attributes(string name, Attributes originalAttributes)
 {
     this.Name = name;
     this.SerializedFingerprint = originalAttributes.SerializedFingerprint;
 }