public AxSdkPublicKeyDirectory(string email, Guid apiKey, AxSdkConfiguration configuration) { _email = EmailAddress.Parse(email); _passphrase = new Passphrase(apiKey.ToString()); _client = new AxCryptApiClient(new RestIdentity(email, _passphrase.Text), configuration.ApiBaseUrl, configuration.ApiTimeout); }
public AxSdkStreamEncryptor(AxSdkConfiguration configuration) { _cryptoId = configuration.CryptoId; _options = configuration.Copmress ? AxCryptOptions.EncryptWithCompression : AxCryptOptions.EncryptWithoutCompression; _options |= AxCryptOptions.SetFileTimes; }