public override void Output() { if (Mode == ArgsType.ENCRYPT) { FileWrite(Gost28147_89.Encrypt(Data, Key)); } else { FileWrite(Gost28147_89.Decrypt(Data, Key)); } }
public IOcrypt(string password, ArgsType mode) { Key = Gost28147_89.GetKey(password); Mode = mode; }