O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How the Encryption Component Works

The component we just constructed is derived from the ComponentModel. Component namespace. In true cryptography programs, you’ll want to make your class NotInheritable to prevent other programs from overriding methods for malicious purposes. You can easily do this by adding the NotInheritable keyword.

NotInheritable Public Class Encrypt
    Inherits System.ComponentModel.Component

After the initialization code runs, the constructor for our component is called, and a single line of code checks the resource file for the application to see if a hash for a password is stored there. This check is important because we use the password to derive the key and the IV (more on this in a moment). It’s imperative that the password ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required