/// <summary> /// Encrypts the ISBConnect Class Properties against the local node's ScopeID /// </summary> /// <returns></returns> public byte[] EncryptedBuffer() { this.ES = TheBaseAssets.MyScopeManager.GetScrambledScopeID(); //SECURITY-REVIEW: No more ScopeID in clear Text string tPLS = TheCommonUtils.SerializeObjectToJSONString(this); byte [] tEncry = TheBaseAssets.MyCrypto.Encrypt(TheCommonUtils.CUnicodeString2Array(tPLS), TheBaseAssets.MySecrets.GetAK(), TheBaseAssets.MySecrets.GetNodeKey()); this.ES = null; return(tEncry); }