Show / Hide Table of Contents

Class SHAConverter

This class convert string to hashed string and return as a string.

Inheritance
System.Object
SHAConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SDBCS.utility
Assembly: SDBCS.dll
Syntax
public class SHAConverter
Remarks

Author Mehmet Hayati KINAŞ

Version 1.0

Fields

SHA_256

Declaration
public const int SHA_256 = 0
Field Value
Type Description
System.Int32

SHA_384

Declaration
public const int SHA_384 = 1
Field Value
Type Description
System.Int32

SHA_512

Declaration
public const int SHA_512 = 2
Field Value
Type Description
System.Int32

UTF_16

Declaration
public const int UTF_16 = 1
Field Value
Type Description
System.Int32

UTF_32

Declaration
public const int UTF_32 = 2
Field Value
Type Description
System.Int32

UTF_8

Declaration
public const int UTF_8 = 0
Field Value
Type Description
System.Int32

Methods

getEncoded(Int32, String, Int32)

This static method take algorithm, pswToHash, charset parameters for encoding and return hashed string.

Declaration
public static string getEncoded(int algorithm, string strToHash, int charset)
Parameters
Type Name Description
System.Int32 algorithm

Algorithm selector Int32 value for encoding like SHA_256

System.String strToHash

String value to be encoded

System.Int32 charset

Charset instance selector like UTF_8

Returns
Type Description
System.String

Encoded string value

In This Article
Back to top Generated by DocFX