C# 클래스 ServiceStack.AesUtils

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

공개 메소드들

메소드 설명
CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
CreateIv ( ) : byte[]
CreateKey ( ) : byte[]
CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
Encrypt ( string text, byte cryptKey, byte iv ) : string

메소드 상세

CreateCryptAuthKeysAndIv() 공개 정적인 메소드

public static CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
cryptKey byte
authKey byte
iv byte
리턴 void

CreateIv() 공개 정적인 메소드

public static CreateIv ( ) : byte[]
리턴 byte[]

CreateKey() 공개 정적인 메소드

public static CreateKey ( ) : byte[]
리턴 byte[]

CreateKeyAndIv() 공개 정적인 메소드

public static CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
cryptKey byte
iv byte
리턴 void

CreateSymmetricAlgorithm() 공개 정적인 메소드

public static CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
리턴 System.Security.Cryptography.SymmetricAlgorithm

Decrypt() 공개 정적인 메소드

public static Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
encryptedBytes byte
cryptKey byte
iv byte
리턴 byte[]

Decrypt() 공개 정적인 메소드

public static Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
encryptedBase64 string
cryptKey byte
iv byte
리턴 string

Encrypt() 공개 정적인 메소드

public static Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
bytesToEncrypt byte
cryptKey byte
iv byte
리턴 byte[]

Encrypt() 공개 정적인 메소드

public static Encrypt ( string text, byte cryptKey, byte iv ) : string
text string
cryptKey byte
iv byte
리턴 string