/// <summary>
        /// Reads an IW8 encrypted string from the processes' memory.
        /// </summary>
        /// <param name="address">Memory Address</param>
        /// <param name="bufferSize">Buffer Read Size</param>
        /// <returns>Resulting String</returns>
        public string ReadWZEncryptedString(long address, byte inputLength, bool nullCheck = false)
        {
            string decrypted = Decrypt0r.DecryptWZString(ReadBytes(address, inputLength));

            if (nullCheck == true)
            {
                if (decrypted == "")
                {
                    return(null);
                }
            }

            return(decrypted);
        }
Esempio n. 2
0
        /// <summary>
        /// Reads an encrypted string from the processes' memory.
        /// </summary>
        /// <param name="address">Memory Address</param>
        /// <param name="bufferSize">Buffer Read Size</param>
        /// <returns>Resulting String</returns>
        public string ReadT9EncryptedString(long address, int bufferSize = 3072, bool nullCheck = false)
        {
            string decrypted = Decrypt0r.DecryptString(ReadBytes(address, bufferSize));

            if (nullCheck == true)
            {
                if (decrypted == "")
                {
                    return(null);
                }
            }

            return(decrypted);
        }