/// <summary> /// Creates new CryptoService instance with custom config which implements IConfigCrypto /// </summary> /// <param name="config">Config instance of a type which implements IConfigCrypto</param> /// <returns></returns> public static CryptoService Create(IConfigCrypto config) { return(new CryptoService(config)); }
/// <summary> /// Using the default settings with iteration count set to 10,000 from ConfigCryptoDefault /// </summary> /// <param name="config"></param> public CryptoService(IConfigCrypto config) { _config = config; }