private static CryptoFactory CreateCryptoFactory() { CryptoFactory factory = new CryptoFactory(); factory.Add(() => new V2Aes256CryptoFactory()); factory.Add(() => new V1Aes128CryptoFactory()); return(factory); }