I have a homemade encryption DLL that my company uses. I have been using it fine from within VB for years using the following two declares: Declare Function Encrypt Lib "PCRYPT32.DLL" Alias "_Encrypt@16" (ByVal szInString As String, ByVal szOutString As String, ByVal szMasterKey As