C# 클래스 JelloScrum.Login.Wachtwoord.PassWordHelper

Helper class for password handling. Use to encrypt passwords and generate salts. Can also be used to generate a phonetic password.
파일 보기 프로젝트 열기: auxilium/JelloScrum

공개 메소드들

메소드 설명
EncryptPassWord ( string passWord ) : string

Encrypts the specified password using the MD5 hash algoritm and no salt

EncryptPassWord ( string passWord, HashAlgoritm hashAlgoritm ) : string

Encrypts the specified password using the specified hash algoritm

EncryptPassWord ( string passWord, string salt ) : string

Encrypts the specified password using the MD5 hash algoritm

EncryptPassWord ( string passWord, string salt, HashAlgoritm hashAlgoritm ) : string

Encrypts the specified password using the specified hash algoritm

GenerateAlphanumericPassWord ( ) : string

Generate an alphanumeric password

GenerateAlphanumericPassWord ( int lengte ) : string

Generate an alphanumeric password

GeneratePhoneticPassWord ( ) : string

Generates a phonetic password of 6 characters

GeneratePhoneticPassWord ( int passwordLength ) : string

Generates a phonetic password of specified number of characters

GenerateSalt ( ) : string

Generates a 6 byte salt

GenerateSalt ( int size ) : string

Generates a salt of specified byte size

GenerateSalt ( int minSaltSize, int maxSaltSize ) : string

Generates a salt of a random byte size The minimum and maximum byte sizes are specified.

비공개 메소드들

메소드 설명
GetRandomNumber ( int bandwith ) : int

Gets a random number within a zero based specfied bandwith

MD5Hash ( string data ) : string

메소드 상세

EncryptPassWord() 공개 정적인 메소드

Encrypts the specified password using the MD5 hash algoritm and no salt
public static EncryptPassWord ( string passWord ) : string
passWord string
리턴 string

EncryptPassWord() 공개 정적인 메소드

Encrypts the specified password using the specified hash algoritm
public static EncryptPassWord ( string passWord, HashAlgoritm hashAlgoritm ) : string
passWord string
hashAlgoritm HashAlgoritm
리턴 string

EncryptPassWord() 공개 정적인 메소드

Encrypts the specified password using the MD5 hash algoritm
public static EncryptPassWord ( string passWord, string salt ) : string
passWord string
salt string
리턴 string

EncryptPassWord() 공개 정적인 메소드

Encrypts the specified password using the specified hash algoritm
public static EncryptPassWord ( string passWord, string salt, HashAlgoritm hashAlgoritm ) : string
passWord string
salt string
hashAlgoritm HashAlgoritm
리턴 string

GenerateAlphanumericPassWord() 공개 정적인 메소드

Generate an alphanumeric password
public static GenerateAlphanumericPassWord ( ) : string
리턴 string

GenerateAlphanumericPassWord() 공개 정적인 메소드

Generate an alphanumeric password
public static GenerateAlphanumericPassWord ( int lengte ) : string
lengte int
리턴 string

GeneratePhoneticPassWord() 공개 정적인 메소드

Generates a phonetic password of 6 characters
public static GeneratePhoneticPassWord ( ) : string
리턴 string

GeneratePhoneticPassWord() 공개 정적인 메소드

Generates a phonetic password of specified number of characters
public static GeneratePhoneticPassWord ( int passwordLength ) : string
passwordLength int
리턴 string

GenerateSalt() 공개 정적인 메소드

Generates a 6 byte salt
public static GenerateSalt ( ) : string
리턴 string

GenerateSalt() 공개 정적인 메소드

Generates a salt of specified byte size
public static GenerateSalt ( int size ) : string
size int the salt byte size
리턴 string

GenerateSalt() 공개 정적인 메소드

Generates a salt of a random byte size The minimum and maximum byte sizes are specified.
public static GenerateSalt ( int minSaltSize, int maxSaltSize ) : string
minSaltSize int minimum salt byte size
maxSaltSize int maximum salt byte size
리턴 string