public string Decrypt(string pvMode, string pvInput, string pvKey) { switch (pvMode) { case "QTEK": { return(QTekCrypter.Crypting(pvKey, pvInput)); } case "HQ": { return(HQCrypter.Decrypt(pvInput)); } case "RSA": { return(RSACrypter.Decrypt(pvInput)); } case "DES": { return(DESCrypter.Decrypt(pvInput)); } case "RC2": { return(RC2Crypter.Decrypt(pvInput)); } } return(pvInput); }
public void Constructor_CallsLoadCertificate() { var certificateLoaderMock = Mocks.CertificateLoader; var rsaCrypter = new RSACrypter(certificateLoaderMock.Object); certificateLoaderMock.Verify(loader => loader.LoadCertificate()); }