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