VBA AES256 Cipher for Strings ONLY - Base 64 output???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ironfelix717
    New Member
    • May 2020
    • 1

    VBA AES256 Cipher for Strings ONLY - Base 64 output???

    Hi all,

    I know that user Rabbit made an AES256 alg here:
    https://bytes.com/topic/access/insights/906850-aes-encryption-algorithm-vba-vbscript

    There's an inquiry on here from a guy who requested a version of the CBC code in that link for use with plain text strings. Encrypting/decryptin. But nothing ever came of it.

    There's not a chance under the sun i'm modifying that code to take a string. Too many loops for me to follow whats actually going on. It should've been written to take a byte array in the first place, rather than a file path. I digress.

    Can anyone help me find an AES256 Cipher for strings in VBA? Encrypt/Decrypt. It will be used with Access in "short text" / "long text" field types, so output has to be Base64, i'm guessing.

    -Thanks!!!

    ------------------------------------------

    Additional info:
    I've used the RC4 and XORC examples that are all over the web. They seem weak and they also don't output Base64 which causes issues with querying the encrypted values, etc. An encryption function that is 20 lines doesn't seem all that convincing its secure....
Working...