C# 클래스 GSoft.Dynamite.Utils.CryptoHelper

Helper class to encrypt and decrypt data using share secret
파일 보기 프로젝트 열기: GSoft-SharePoint/Dynamite-2010

공개 메소드들

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

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

EncryptStringAES ( 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 stream ) : byte[]

메소드 상세

DecryptStringAES() 공개 정적인 메소드

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

EncryptStringAES() 공개 정적인 메소드

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