C# 클래스 R.Scheduler.Core.AESGCM

파일 보기 프로젝트 열기: R-Suite/R.Scheduler

공개 프로퍼티들

프로퍼티 타입 설명
Iterations int
KeyBitSize int
MacBitSize int
MinPasswordLength int
NonceBitSize int
SaltBitSize int

공개 메소드들

메소드 설명
NewKey ( ) : byte[]

Helper that generates a random new key on each call.

SimpleDecrypt ( byte encryptedMessage, byte key, int nonSecretPayloadLength ) : byte[]

Simple Decryption & Authentication (AES-GCM) of a UTF8 Message

SimpleDecrypt ( string encryptedMessage, byte key, int nonSecretPayloadLength ) : string

Simple Decryption & Authentication (AES-GCM) of a UTF8 Message

SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[]

Simple Decryption and Authentication of a UTF8 message using a key derived from a password

Significantly less secure than using random binary keys.

SimpleDecryptWithPassword ( string encryptedMessage, string password, int nonSecretPayloadLength ) : string

Simple Decryption and Authentication (AES-GCM) of a UTF8 message using a key derived from a password (PBKDF2)

Significantly less secure than using random binary keys.

SimpleEncrypt ( byte secretMessage, byte key, byte nonSecretPayload = null ) : byte[]

Simple Encryption And Authentication (AES-GCM) of a UTF8 string.

Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64

SimpleEncrypt ( string secretMessage, byte key, byte nonSecretPayload = null ) : string

Simple Encryption And Authentication (AES-GCM) of a UTF8 string.

Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64

SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[]

Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key derived from a password.

Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters.

SimpleEncryptWithPassword ( string secretMessage, string password, byte nonSecretPayload = null ) : string

Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key derived from a password (PBKDF2).

Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters.

메소드 상세

NewKey() 공개 정적인 메소드

Helper that generates a random new key on each call.
public static NewKey ( ) : byte[]
리턴 byte[]

SimpleDecrypt() 공개 정적인 메소드

Simple Decryption & Authentication (AES-GCM) of a UTF8 Message
public static SimpleDecrypt ( byte encryptedMessage, byte key, int nonSecretPayloadLength ) : byte[]
encryptedMessage byte The encrypted message.
key byte The key.
nonSecretPayloadLength int Length of the optional non-secret payload.
리턴 byte[]

SimpleDecrypt() 공개 정적인 메소드

Simple Decryption & Authentication (AES-GCM) of a UTF8 Message
public static SimpleDecrypt ( string encryptedMessage, byte key, int nonSecretPayloadLength ) : string
encryptedMessage string The encrypted message.
key byte The key.
nonSecretPayloadLength int Length of the optional non-secret payload.
리턴 string

SimpleDecryptWithPassword() 공개 정적인 메소드

Simple Decryption and Authentication of a UTF8 message using a key derived from a password
Significantly less secure than using random binary keys.
Must have a password of minimum length;password
public static SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[]
encryptedMessage byte The encrypted message.
password string The password.
nonSecretPayloadLength int Length of the non secret payload.
리턴 byte[]

SimpleDecryptWithPassword() 공개 정적인 메소드

Simple Decryption and Authentication (AES-GCM) of a UTF8 message using a key derived from a password (PBKDF2)
Significantly less secure than using random binary keys.
Encrypted Message Required!;encryptedMessage
public static SimpleDecryptWithPassword ( string encryptedMessage, string password, int nonSecretPayloadLength ) : string
encryptedMessage string The encrypted message.
password string The password.
nonSecretPayloadLength int Length of the non secret payload.
리턴 string

SimpleEncrypt() 공개 정적인 메소드

Simple Encryption And Authentication (AES-GCM) of a UTF8 string.
Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64
public static SimpleEncrypt ( byte secretMessage, byte key, byte nonSecretPayload = null ) : byte[]
secretMessage byte The secret message.
key byte The key.
nonSecretPayload byte Optional non-secret payload.
리턴 byte[]

SimpleEncrypt() 공개 정적인 메소드

Simple Encryption And Authentication (AES-GCM) of a UTF8 string.
Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64
Secret Message Required!;secretMessage
public static SimpleEncrypt ( string secretMessage, byte key, byte nonSecretPayload = null ) : string
secretMessage string The secret message.
key byte The key.
nonSecretPayload byte Optional non-secret payload.
리턴 string

SimpleEncryptWithPassword() 공개 정적인 메소드

Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key derived from a password.
Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters.
Must have a password of minimum length;password
public static SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[]
secretMessage byte The secret message.
password string The password.
nonSecretPayload byte The non secret payload.
리턴 byte[]

SimpleEncryptWithPassword() 공개 정적인 메소드

Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key derived from a password (PBKDF2).
Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters.
public static SimpleEncryptWithPassword ( string secretMessage, string password, byte nonSecretPayload = null ) : string
secretMessage string The secret message.
password string The password.
nonSecretPayload byte The non secret payload.
리턴 string

프로퍼티 상세

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

public static int Iterations
리턴 int

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

public static int KeyBitSize
리턴 int

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

public static int MacBitSize
리턴 int

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

public static int MinPasswordLength
리턴 int

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

public static int NonceBitSize
리턴 int

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

public static int SaltBitSize
리턴 int