C# 클래스 FloydPink.Flickr.Downloadr.Repository.Helpers.Crypt

파일 보기 프로젝트 열기: flickr-downloadr/flickr-downloadr

공개 메소드들

메소드 설명
Decrypt ( string cipherText, string sharedSecret ) : string

Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.

Encrypt ( string plainText, string sharedSecret ) : string

Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.

비공개 메소드들

메소드 설명
ReadByteArray ( Stream s ) : byte[]

메소드 상세

Decrypt() 공개 정적인 메소드

Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.
public static Decrypt ( string cipherText, string sharedSecret ) : string
cipherText string The text to decrypt.
sharedSecret string A password used to generate a key for decryption.
리턴 string

Encrypt() 공개 정적인 메소드

Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.
public static Encrypt ( string plainText, string sharedSecret ) : string
plainText string The text to encrypt.
sharedSecret string A password used to generate a key for encryption.
리턴 string