C# 클래스 LumiSoft.Net.AUTH.AuthHelper

Provides helper methods for authentications(APOP,CRAM-MD5,DIGEST-MD5).
파일 보기 프로젝트 열기: jeske/StepsDB-alpha

공개 메소드들

메소드 설명
Apop ( string password, string passwordTag ) : string

Calculates APOP authentication compare value.

Base64de ( string text ) : string

Decodes specified base64 string.

Base64en ( string text ) : string

Encodes specified string to base64 string.

Cram_Md5 ( string password, string hashKey ) : string

Calculates CRAM-MD5 authentication compare value.

Create_Digest_Md5_ServerResponse ( string realm, string nonce ) : string

Creates AUTH Digest-md5 server response what server must send to client.

Digest_Md5 ( bool client_server, string realm, string userName, string password, string nonce, string cnonce, string digest_uri ) : string

Calculates DIGEST-MD5 authentication compare value.

GenerateNonce ( ) : string

Generates random nonce value.

Hex ( string text ) : string

Converts specified string to hexa string.

HmacMd5 ( string hashKey, string text ) : string

Calculates keyed md5 hash from specifieed text and with specified hash key.

Md5 ( string text ) : string

Calculates md5 hash from specified string.

메소드 상세

Apop() 공개 정적인 메소드

Calculates APOP authentication compare value.
public static Apop ( string password, string passwordTag ) : string
password string Password.
passwordTag string Password tag.
리턴 string

Base64de() 공개 정적인 메소드

Decodes specified base64 string.
public static Base64de ( string text ) : string
text string Base64 string to decode.
리턴 string

Base64en() 공개 정적인 메소드

Encodes specified string to base64 string.
public static Base64en ( string text ) : string
text string Text to encode.
리턴 string

Cram_Md5() 공개 정적인 메소드

Calculates CRAM-MD5 authentication compare value.
public static Cram_Md5 ( string password, string hashKey ) : string
password string Password.
hashKey string Hash calculation key
리턴 string

Create_Digest_Md5_ServerResponse() 공개 정적인 메소드

Creates AUTH Digest-md5 server response what server must send to client.
public static Create_Digest_Md5_ServerResponse ( string realm, string nonce ) : string
realm string Use domain or machine name for this.
nonce string Server password tag.Random hex string is suggested.
리턴 string

Digest_Md5() 공개 정적인 메소드

Calculates DIGEST-MD5 authentication compare value.
public static Digest_Md5 ( bool client_server, string realm, string userName, string password, string nonce, string cnonce, string digest_uri ) : string
client_server bool Specifies if client or server value calculated. /// Client and server has diffrent calculation method.
realm string Use domain or machine name for this.
userName string User name.
password string Password.
nonce string Server password tag.
cnonce string Client password tag.
digest_uri string
리턴 string

GenerateNonce() 공개 정적인 메소드

Generates random nonce value.
public static GenerateNonce ( ) : string
리턴 string

Hex() 공개 정적인 메소드

Converts specified string to hexa string.
public static Hex ( string text ) : string
text string
리턴 string

HmacMd5() 공개 정적인 메소드

Calculates keyed md5 hash from specifieed text and with specified hash key.
public static HmacMd5 ( string hashKey, string text ) : string
hashKey string
text string
리턴 string

Md5() 공개 정적인 메소드

Calculates md5 hash from specified string.
public static Md5 ( string text ) : string
text string
리턴 string