C# Class TransForm.TransFormer

Mostrar archivo Open project: SecurityInnovation/Transform

Public Methods

Method Description
Base64Decode ( string textToTransform ) : string
Base64Encode ( string utf8Text ) : string
BasicHTMLEncode ( string input ) : string
BasicURLEncode ( string input ) : string
CRC16 ( string input ) : string
CRC32 ( string input ) : string
ComputeCRC16 ( byte bytes ) : ushort
ConvertHexStringToBinaryString ( byte input ) : string
ConvertStringToHexString ( string input ) : string
ConvertStringToHexString ( string input, string format ) : string
ForceFullHTMLEncode ( string input ) : string
ForceFullJavaScriptEncode ( string input ) : string
ForceFullURLEncode ( string input ) : string
HTMLDecode ( string input ) : string
MD5 ( string input ) : string
ParseQueryString ( string input ) : string
SHA1 ( string input ) : string
SHA256 ( string input ) : string
SHA384 ( string input ) : string
SHA512 ( string input ) : string
URLDecode ( string input ) : string
ValidateWithStringInfo ( string input ) : string

Private Methods

Method Description
BytesToHexString ( byte Hash ) : string
ComputeCRC32 ( byte bytes ) : uint
ComputeChecksumBytes ( byte bytes ) : byte[]
ComputeHash ( string input, HashAlgorithm hasher ) : string

Method Details

Base64Decode() public static method

public static Base64Decode ( string textToTransform ) : string
textToTransform string
return string

Base64Encode() public static method

public static Base64Encode ( string utf8Text ) : string
utf8Text string
return string

BasicHTMLEncode() public static method

public static BasicHTMLEncode ( string input ) : string
input string
return string

BasicURLEncode() public static method

public static BasicURLEncode ( string input ) : string
input string
return string

CRC16() public static method

public static CRC16 ( string input ) : string
input string
return string

CRC32() public static method

public static CRC32 ( string input ) : string
input string
return string

ComputeCRC16() public static method

public static ComputeCRC16 ( byte bytes ) : ushort
bytes byte
return ushort

ConvertHexStringToBinaryString() public static method

public static ConvertHexStringToBinaryString ( byte input ) : string
input byte
return string

ConvertStringToHexString() public static method

public static ConvertStringToHexString ( string input ) : string
input string
return string

ConvertStringToHexString() public static method

public static ConvertStringToHexString ( string input, string format ) : string
input string
format string
return string

ForceFullHTMLEncode() public static method

public static ForceFullHTMLEncode ( string input ) : string
input string
return string

ForceFullJavaScriptEncode() public static method

public static ForceFullJavaScriptEncode ( string input ) : string
input string
return string

ForceFullURLEncode() public static method

public static ForceFullURLEncode ( string input ) : string
input string
return string

HTMLDecode() public static method

public static HTMLDecode ( string input ) : string
input string
return string

MD5() public static method

public static MD5 ( string input ) : string
input string
return string

ParseQueryString() public static method

public static ParseQueryString ( string input ) : string
input string
return string

SHA1() public static method

public static SHA1 ( string input ) : string
input string
return string

SHA256() public static method

public static SHA256 ( string input ) : string
input string
return string

SHA384() public static method

public static SHA384 ( string input ) : string
input string
return string

SHA512() public static method

public static SHA512 ( string input ) : string
input string
return string

URLDecode() public static method

public static URLDecode ( string input ) : string
input string
return string

ValidateWithStringInfo() public static method

public static ValidateWithStringInfo ( string input ) : string
input string
return string