C# 클래스 LitDev.StringEncryption

파일 보기 프로젝트 열기: litdev1/LitDev 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IterationCount int
KeyLengthBits int
SaltLength int

공개 메소드들

메소드 설명
CalculateMD5Hash ( string input ) : string
CalculateMD5HashFile ( string fileName ) : string
CalculateSHA512Hash ( string input ) : string
DecryptString ( string ciphertext, string passphrase ) : string
EncryptString ( string plaintext, string passphrase ) : string

비공개 메소드들

메소드 설명
DeriveKeyFromPassphrase ( string passphrase, byte salt ) : byte[]
DoCryptoOperation ( byte inputData, byte key, byte iv, bool encrypt ) : byte[]
GenerateRandomBytes ( int lengthBytes ) : byte[]
HexString ( byte bytes ) : string

메소드 상세

CalculateMD5Hash() 공개 정적인 메소드

public static CalculateMD5Hash ( string input ) : string
input string
리턴 string

CalculateMD5HashFile() 공개 정적인 메소드

public static CalculateMD5HashFile ( string fileName ) : string
fileName string
리턴 string

CalculateSHA512Hash() 공개 정적인 메소드

public static CalculateSHA512Hash ( string input ) : string
input string
리턴 string

DecryptString() 공개 정적인 메소드

public static DecryptString ( string ciphertext, string passphrase ) : string
ciphertext string
passphrase string
리턴 string

EncryptString() 공개 정적인 메소드

public static EncryptString ( string plaintext, string passphrase ) : string
plaintext string
passphrase string
리턴 string

프로퍼티 상세

IterationCount 공개적으로 정적으로 프로퍼티

public static int IterationCount
리턴 int

KeyLengthBits 공개적으로 정적으로 프로퍼티

public static int KeyLengthBits
리턴 int

SaltLength 공개적으로 정적으로 프로퍼티

public static int SaltLength
리턴 int