>The Shared keyword makes the property static. The value of the property will not vary across instances of the class. Function.dll must be cached.
Thus, what I did to solve the issue is probably the best. I put Encrypt.lError=False before calling the method.