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;
            }
        }
Exemple #2
0
 public void Setup()
 {
     encryptModel = new EncryptModel();
     encryptModel.encryptionType = EncryptionType.Cesar;
 }
Exemple #3
0
 public void Setup()
 {
     encryptModel = new EncryptModel();
     encryptModel.encryptionType = EncryptionType.ToAscii;
 }
 public void Setup()
 {
     encryptModel = new EncryptModel();
     encryptModel.encryptionType = EncryptionType.Vignere;
 }