C# Class CodeCake.RijndaelCrypt

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

Méthodes publiques

Méthode 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

Méthode Description
GetRijndael ( string secret ) : Rijndael

Method Details

Decrypt() public static méthode

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.
Résultat void

Encrypt() public static méthode

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.
Résultat void