14-09-2013, 01:50 PM
Visual Basic .NET File IO Primer
Visual Basic.docx (Size: 21.21 KB / Downloads: 14)
Introduction
I have a secret, and I don't want you to know it. Actually, I have an application, and I want it to be able to store information in an encrypted format so that it can't be read by unauthorized users. Visual Basic 6 does not have any built-in functionality to perform encryption or decryption of data, but the Microsoft .NET Framework does have strong encryption built it. In this article, I provide a Visual Basic .NET component that provides encryption and decryption functionality, and you can very easily use this component from Visual Basic 6, ASP, or any other COM environment.
Visual Basic .NET File IO Primer
Before jumping into encryption, it's important to understand how Visual Basic .NET deals with file IO. The Microsoft .NET Framework uses something known as "streams" when working with files, as shown here.
Conclusion
Visual Basic 6 doesn't provide built in encryption and decryption functionality, but the Microsoft .NET Framework does. As with everything in the .NET Framework, it is relatively simple to expose that functionality so that it can be used from a Visual Basic 6 application. This article provides you with a pre-packaged solution to add encryption and decryption functionality to your Visual Basic 6 application with just a few lines of code. Enjoy.