C# Class CodeCake.RijndaelCrypt

This is the same algorithm and configuration as https://github.com/appveyor/secure-file.
Mostra file Open project: SimpleGitVersion/CodeCake

Public Methods

Method Description
Decrypt ( string fileName, string outFileName, string secret ) : void

Decrypts a file into another file (that must not exist) with a given secret.

Encrypt ( string fileName, string outFileName, string secret ) : void

Encrypts a file into another file (that must not exist) with a given secret.

Private Methods

Method Description
GetRijndael ( string secret ) : Rijndael

Method Details

Decrypt() public static method

Decrypts a file into another file (that must not exist) with a given secret.
public static Decrypt ( string fileName, string outFileName, string secret ) : void
fileName string File to decrypt.
outFileName string Target file that will be decrypted. Must not exist.
secret string Secret to use.
return void

Encrypt() public static method

Encrypts a file into another file (that must not exist) with a given secret.
public static Encrypt ( string fileName, string outFileName, string secret ) : void
fileName string File to encrypt.
outFileName string Target file that will be encrypted. Must not exist.
secret string Secret to use.
return void