C# Class Membership.Utils.Encryption.CryptographyHelper

Exibir arquivo Open project: serdarb/Membership-Service

Public Methods

Method Description
SHA256Hasher ( string textToHash ) : string

Hashes String With SHA256 Algorithm

XOR ( string compA, string compB = null ) : string

Xors the 2 component.

Private Methods

Method Description
ByteToHex ( byte byteData ) : string
HexToByte ( string hex ) : byte[]
ReverseString ( string text ) : string

Method Details

SHA256Hasher() public method

Hashes String With SHA256 Algorithm
public SHA256Hasher ( string textToHash ) : string
textToHash string Text to Hash
return string

XOR() public method

Xors the 2 component.
public XOR ( string compA, string compB = null ) : string
compA string Component.
compB string Component.
return string