// 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)); }
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); }
public Attributes(string name, Attributes originalAttributes) { this.Name = name; this.SerializedFingerprint = originalAttributes.SerializedFingerprint; }