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

Glossary Item Box

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

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

Generated with Document! X 2011 by Innovasys