C# 클래스 Common.Cryptography.AES

AES is a symmetric 256-bit encryption algorthm. Read more: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
파일 보기 프로젝트 열기: osROSE/UnityRose 1 사용 예제들

공개 메소드들

메소드 설명
AES ( ) : System
Decrypt ( byte cipherTextBytes, string password = null, string salt = null, string initialVector = null ) : string

Decrypts an AES-encrypted string.

Decrypt ( string cipherText, string password = null, string salt = null, string initialVector = null ) : string

Decrypts an AES-encrypted string.

Encrypt ( string plainText, string password = null, string salt = null, string initialVector = null ) : string

Encrypts a string with AES

EncryptToBytes ( byte plainTextBytes, string password = null, string salt = null, string initialVector = null ) : byte[]

Encrypts a string with AES

EncryptToBytes ( string plainText, string password = null, string salt = null, string initialVector = null ) : byte[]

Encrypts a string with AES

메소드 상세

AES() 공개 메소드

public AES ( ) : System
리턴 System

Decrypt() 공개 메소드

Decrypts an AES-encrypted string.
public Decrypt ( byte cipherTextBytes, string password = null, string salt = null, string initialVector = null ) : string
cipherTextBytes byte
password string Password to decrypt with
salt string Salt to decrypt with
initialVector string Needs to be 16 ASCII characters long
리턴 string

Decrypt() 공개 메소드

Decrypts an AES-encrypted string.
public Decrypt ( string cipherText, string password = null, string salt = null, string initialVector = null ) : string
cipherText string Text to be decrypted
password string Password to decrypt with
salt string Salt to decrypt with
initialVector string Needs to be 16 ASCII characters long
리턴 string

Encrypt() 공개 메소드

Encrypts a string with AES
public Encrypt ( string plainText, string password = null, string salt = null, string initialVector = null ) : string
plainText string Text to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
리턴 string

EncryptToBytes() 공개 메소드

Encrypts a string with AES
public EncryptToBytes ( byte plainTextBytes, string password = null, string salt = null, string initialVector = null ) : byte[]
plainTextBytes byte Bytes to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
리턴 byte[]

EncryptToBytes() 공개 메소드

Encrypts a string with AES
public EncryptToBytes ( string plainText, string password = null, string salt = null, string initialVector = null ) : byte[]
plainText string Text to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
리턴 byte[]