public DES(string plainText, string key)
 {
     plainTextBitArray       = StringToBitArray.Convert(plainText);
     plainTextBitArray       = PlainTextOperation.Standardisation(plainTextBitArray);
     keyBitArray             = StringToBitArray.Convert(key);
     keyBitArray             = KeysOperations.Standardisation(keyBitArray);
     plainText64BitFragments = new BitArray[plainTextBitArray.Length / 64];
     subkeys = KeysOperations.CreateSubkeys(keyBitArray);
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Keys   = new KeysOperations(this);
     Vaults = new VaultsOperations(this);
     PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources       = new PrivateLinkResourcesOperations(this);
     ManagedHsms = new ManagedHsmsOperations(this);
     MHSMPrivateEndpointConnections = new MHSMPrivateEndpointConnectionsOperations(this);
     MHSMPrivateLinkResources       = new MHSMPrivateLinkResourcesOperations(this);
     Operations     = new Operations(this);
     Secrets        = new SecretsOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2021-06-01-preview";
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }