Standard base-64 padded encoding using the following characters: a-z, A-Z, 0-9, +, /, =
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly Base64 As ByteEncoding |
Example
Library/Library.Test/TestEncryption.cs
C# | Copy Code |
---|
string svalue = TEST_PASSWORD;
string esbyuser = Encryptor.Encrypt(svalue, ByteEncoding.Base64);
Assert.AreNotEqual(svalue, esbyuser);
Assert.AreEqual(svalue, Encryptor.Decrypt(esbyuser, ByteEncoding.Base64)); |
VB.NET | Copy Code |
---|
Dim svalue As String = TEST_PASSWORD
Dim esbyuser As String = Encryptor.Encrypt(svalue, ByteEncoding.Base64)
Assert.AreNotEqual(svalue, esbyuser)
Assert.AreEqual(svalue, Encryptor.Decrypt(esbyuser, ByteEncoding.Base64)) |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also