C# Class RNCryptor.Encryptor

Inheritance: RNCryptor.Cryptor
显示文件 Open project: RNCryptor/RNCryptor-cs

Public Methods

Method Description
Encrypt ( string plaintext, string password ) : string
Encrypt ( string plaintext, string password, Schema schemaVersion ) : string

Private Methods

Method Description
encryptAesCbcPkcs7 ( byte plaintext, byte key, byte iv ) : byte[]
generateRandomBytes ( int length ) : byte[]

Method Details

Encrypt() public method

public Encrypt ( string plaintext, string password ) : string
plaintext string
password string
return string

Encrypt() public method

public Encrypt ( string plaintext, string password, Schema schemaVersion ) : string
plaintext string
password string
schemaVersion Schema
return string