public EncryptViewModel(EncryptionType encTyp, string encKey, bool toEncrypt, string input) { encryptionType = encTyp; encryptionKey = encKey; mustBeEncrypted = toEncrypt; inputText = input; try { inputChecker(); encryptModel = new EncryptModel(encTyp, encKey, toEncrypt, input); } catch (Exception) { throw; } }
public void Setup() { encryptModel = new EncryptModel(); encryptModel.encryptionType = EncryptionType.Cesar; }
public void Setup() { encryptModel = new EncryptModel(); encryptModel.encryptionType = EncryptionType.ToAscii; }
public void Setup() { encryptModel = new EncryptModel(); encryptModel.encryptionType = EncryptionType.Vignere; }