CSharpTest.Net
Base64 Field
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Formatting Namespace > ByteEncoding Class : Base64 Field

Glossary Item Box

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
C# 
public static readonly ByteEncoding Base64

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.NETCopy 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

Generated with Document! X 2011 by Innovasys