C# 클래스 Utilities.Cryptography.ExtensionMethods.HashExtensions

Hash based extensions
파일 보기 프로젝트 열기: feanz/Utilities

공개 메소드들

메소드 설명
Hash ( this data, HashAlgorithm algorithm = null ) : byte[]

Computes the hash of a byte array

Hash ( this data, HashAlgorithm algorithm = null, Encoding encodingUsing = null ) : string

Computes the hash of a string

비공개 메소드들

메소드 설명
ToByteArray ( this input, Encoding encodingUsing = null ) : byte[]

메소드 상세

Hash() 공개 정적인 메소드

Computes the hash of a byte array
public static Hash ( this data, HashAlgorithm algorithm = null ) : byte[]
data this Byte array to hash
algorithm System.Security.Cryptography.HashAlgorithm Hash algorithm to use (defaults to SHA256)
리턴 byte[]

Hash() 공개 정적인 메소드

Computes the hash of a string
public static Hash ( this data, HashAlgorithm algorithm = null, Encoding encodingUsing = null ) : string
data this string to hash
algorithm System.Security.Cryptography.HashAlgorithm Algorithm to use (defaults to SHA256)
encodingUsing System.Text.Encoding Encoding used by the string (defaults to UTF8)
리턴 string