Glad to hear you found the problem. Sorry it took me so long to reply I've been buried in work and don't get out here to UT as often as I'd like.
>As I was setting up a repro to post, I realized that i was doing an ALLTRIM() when I called the DECRYPT() function.
>
>DECRYPT(ALLTRIM(tcEncryptedString),tcKey,lnEncryptionType,lnEncrypytionMode)
>
>I removed ALLT() and all is well!
>
>Thanks Craig, for a great tool!
>
>Carsten