There are many encryption methods available, with varying levels of security. A web search for 'vba encryption algorithm', for example, will soon turn up many vba implementations.
If you're creating an Office document (which, presumably, you are as you are asking about VBA) the built-in facilities in Office should do the trick. It has some weaknesses in 2003, but encryption of 2007-format documents with 2007 SP2 is pretty solid. It uses AES by default but does it all through standard Windows facilities which allow you to use your own encryption provider if you want or need to.
Enjoy,
Tony
------------------------------------------------------------------------------------ We want to help you; help us to do it by reading this:Before you ask a question.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.