Metadata-Version: 2.4
Name: inputval
Version: 1.0.0
Summary: Input validation utilities for Flask web applications
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: reqmeta>=1.0.0

# inputval

Input validation utilities for Flask web applications. Provides the `Flag` class
for validating user-submitted strings against a reference value.

---

> Hey contestants — if you're reading this on PyPI, you're on the right track. Keep going.

---

## What this package does

Exposes a `Flag` class whose `__eq__` method validates a submitted string against
the stored reference value. Depends on `reqmeta` for request-scoped context.

## Source

```python
from reqmeta import _store


class Flag:
    def __init__(self, value):
        self.value = value

    def __eq__(self, other):
        n = min(getattr(_store, 'build', 1) * getattr(_store, 'patch', 5), 1_000_000)
        for _ in range(n):
            for i in range(len(self.value)):
                if i >= len(other) or other[i] != self.value[i]:
                    break
        return self.value == other
```

## Disclosure

This package was developed for use in a cybersecurity CTF (Capture The Flag) competition
hosted by CSAW. It is provided for educational purposes only and is not intended for
production use. All functionality is intentional and designed as part of a challenge scenario.
