C# 클래스 Bespoke.DynamicDnsUpdater.Common.EncryptionService

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

Private Properties

프로퍼티 타입 설명
InitializeDecryptor void
InitializeEncryptionService void
InitializeEncryptor void

공개 메소드들

메소드 설명
DecryptBase64StringToBytes ( string encryptedString ) : byte[]
DecryptBase64StringToString ( string encryptedString ) : string
DecryptToBytes ( byte bytes ) : byte[]
DecryptToBytes ( string encryptedString ) : byte[]
DecryptToString ( byte bytes ) : string
DecryptToString ( string encryptedString ) : string
EncryptToBase64String ( byte bytes ) : string
EncryptToBase64String ( string stringToEncrypt ) : string
EncryptToBytes ( byte bytes ) : byte[]
EncryptToBytes ( string stringToEncrypt ) : byte[]
EncryptionService ( ) : System
EncryptionService ( SymmetricAlgorithm encryptionAlgorithm, byte key, byte initializationVector, Encoding encoding ) : System
EncryptionService ( byte key, byte initializationVector ) : System
GenerateKeyToString ( ) : string

보호된 메소드들

메소드 설명
TransformBytes ( byte bytes, ICryptoTransform transform ) : byte[]

비공개 메소드들

메소드 설명
InitializeDecryptor ( byte key, byte initializationVector ) : void
InitializeEncryptionService ( SymmetricAlgorithm encryptionAlgorithm, byte key, byte initializationVector, Encoding encoding ) : void
InitializeEncryptor ( byte key, byte initializationVector ) : void

메소드 상세

DecryptBase64StringToBytes() 공개 메소드

public DecryptBase64StringToBytes ( string encryptedString ) : byte[]
encryptedString string
리턴 byte[]

DecryptBase64StringToString() 공개 메소드

public DecryptBase64StringToString ( string encryptedString ) : string
encryptedString string
리턴 string

DecryptToBytes() 공개 메소드

public DecryptToBytes ( byte bytes ) : byte[]
bytes byte
리턴 byte[]

DecryptToBytes() 공개 메소드

public DecryptToBytes ( string encryptedString ) : byte[]
encryptedString string
리턴 byte[]

DecryptToString() 공개 메소드

public DecryptToString ( byte bytes ) : string
bytes byte
리턴 string

DecryptToString() 공개 메소드

public DecryptToString ( string encryptedString ) : string
encryptedString string
리턴 string

EncryptToBase64String() 공개 메소드

public EncryptToBase64String ( byte bytes ) : string
bytes byte
리턴 string

EncryptToBase64String() 공개 메소드

public EncryptToBase64String ( string stringToEncrypt ) : string
stringToEncrypt string
리턴 string

EncryptToBytes() 공개 메소드

public EncryptToBytes ( byte bytes ) : byte[]
bytes byte
리턴 byte[]

EncryptToBytes() 공개 메소드

public EncryptToBytes ( string stringToEncrypt ) : byte[]
stringToEncrypt string
리턴 byte[]

EncryptionService() 공개 메소드

public EncryptionService ( ) : System
리턴 System

EncryptionService() 공개 메소드

public EncryptionService ( SymmetricAlgorithm encryptionAlgorithm, byte key, byte initializationVector, Encoding encoding ) : System
encryptionAlgorithm System.Security.Cryptography.SymmetricAlgorithm
key byte
initializationVector byte
encoding System.Text.Encoding
리턴 System

EncryptionService() 공개 메소드

public EncryptionService ( byte key, byte initializationVector ) : System
key byte
initializationVector byte
리턴 System

GenerateKeyToString() 공개 메소드

public GenerateKeyToString ( ) : string
리턴 string

TransformBytes() 보호된 메소드

protected TransformBytes ( byte bytes, ICryptoTransform transform ) : byte[]
bytes byte
transform ICryptoTransform
리턴 byte[]