Please rate your experience Yes No. Any additional feedback? Submit and view feedback for This product This page. View all page feedback. In this article. Filtering My. Log Output Demonstrates how to change the default log filtering for the My. Log object. Creating Custom Log Listeners Demonstrates how to create a custom log listener and configure it to listen to the output of the My. Embedding Types from Managed Assemblies Describes how to create an assembly and a client program that embeds types from it.
Validating That Passwords Are Complex Visual Basic Demonstrates how to check for strong-password characteristics and update a string parameter with information about which checks a password fails. Manipulating Files and Folders in Visual Basic Demonstrates how to use Visual Basic functions to determine information about a file, search for a string in a file, and write to a file.
Manipulating Files Using. NET Framework methods to determine information about a file, search for a string in a file, and write to a file. Persisting an Object in Visual Basic Demonstrates how to create a simple object and persist its data to a file. Walkthrough: Test-First Support with the Generate From Usage Feature Demonstrates how to do test-first development, in which you first write unit tests and then write the source code to make the tests succeed.
Add a private method that creates a byte array of a specified length from the hash of the specified key. The key parameter controls the EncryptData and DecryptData methods. The wrapper class can now be used to protect user assets. In this example, it is used to securely store private user data in a publicly accessible text file. In a separate class, add a method that uses the wrapper's EncryptData method to encrypt a string and write it to the user's My Documents folder.
Add a method that reads the encrypted string from the user's My Documents folder and decrypts the string with the wrapper's DecryptData method. Add user interface code to call the TestEncoding and TestDecoding methods. When you test the application, notice that it will not decrypt the data if you provide the wrong password.
Skip to content. Star 3.
0コメント