C# 클래스 Iaik.Utils.Hash.ProtectedPasswordStorage

Holds a SecureString structure where the plaintext password is appended to. Once the password is completly appended it can be hashed and stored in protected memory, where only the running process has access to
The goal was to use ProtectedMemory for hash storage. Protected Memory encrypts data which is only accessible by this process, but this is not available on all platforms, so the workaround is to store the hash value in a secure string and convert it to byte[] once it is needed
파일 보기 프로젝트 열기: areiter/InMemoryFuzzing 1 사용 예제들

공개 메소드들

메소드 설명
AppendPasswordChar ( char p ) : void

Ads a password character to the plain password storage

ClearHash ( ) : void

Clears the hash in memory

DecryptHash ( ) : void

Decrypts the hash. don't forget to run ClearHash afterwards

EqualPassword ( ProtectedPasswordStorage obj ) : bool
ExportSecureString ( ) : SecureString
Hash ( ) : void

Locks the password and calculates the password hash

InjectHash ( byte hash ) : void
ProtectedPasswordStorage ( ) : System
ProtectedPasswordStorage ( string hashAlgo ) : System
WellKnown ( ) : void

메소드 상세

AppendPasswordChar() 공개 메소드

Ads a password character to the plain password storage
public AppendPasswordChar ( char p ) : void
p char
리턴 void

ClearHash() 공개 메소드

Clears the hash in memory
public ClearHash ( ) : void
리턴 void

DecryptHash() 공개 메소드

Decrypts the hash. don't forget to run ClearHash afterwards
public DecryptHash ( ) : void
리턴 void

EqualPassword() 공개 메소드

public EqualPassword ( ProtectedPasswordStorage obj ) : bool
obj ProtectedPasswordStorage
리턴 bool

ExportSecureString() 공개 메소드

public ExportSecureString ( ) : SecureString
리턴 System.Security.SecureString

Hash() 공개 메소드

Locks the password and calculates the password hash
public Hash ( ) : void
리턴 void

InjectHash() 공개 메소드

public InjectHash ( byte hash ) : void
hash byte
리턴 void

ProtectedPasswordStorage() 공개 메소드

public ProtectedPasswordStorage ( ) : System
리턴 System

ProtectedPasswordStorage() 공개 메소드

public ProtectedPasswordStorage ( string hashAlgo ) : System
hashAlgo string
리턴 System

WellKnown() 공개 메소드

public WellKnown ( ) : void
리턴 void