/// <summary> /// Initializes a new instance of the <see cref="StringEncryptionTask"/> class. /// </summary> /// <param name="method">The method.</param> public StringEncryptionTask(StringEncryptionMethod method) { this.method = method; random = new Random(); }