In the EncryptionMiddleware example, there is no "AESObj" object in "Custom.AES.Func". An example does not work.
That is a file from TMS Cryptography Pack. The demo requires it as it needs a cryptography algorithm. You can of course use your own algorithm. You can simply install TMS Cryptography Pack trial to test the demo.