Input validation utilities for Flask web applications
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inputval-1.0.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 20.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b215eb303e367f7e002445fec7fb38dd08aec1a21ee47fd9d4d1cbafbabf4d72
|
|
| MD5 |
be94bad1cb4c045595e6825fa9839192
|
|
| BLAKE2b-256 |
747af9538848cbafd799b2873ad1f2f6be8be9fb870a8d3918885227359bea14
|
File details
Details for the file inputval-1.0.0-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 102.4 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8d0813cf4aa59c8924276464df7acd3e1e00c60fdfc8cbacb424043e67db45
|
|
| MD5 |
a787c5862b5e976af374651e23030d2d
|
|
| BLAKE2b-256 |
ceec7e00cae117c8d87b2ab2a2263aa9b28ef4772a9fd6d2127f346dddbfad78
|
File details
Details for the file inputval-1.0.0-cp313-cp313-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 101.0 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d65f83f49b752a7456bb8e35a9b0dec16a56868dbb5c7017d9124b87cb19e450
|
|
| MD5 |
361266a1d108c73b809935cc70b8b078
|
|
| BLAKE2b-256 |
f69c5046c1e173d7b33bcce47b27f5c0dcf37f14e13b0334a241da42b3af3455
|
File details
Details for the file inputval-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 103.1 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e182e69685f23a2c06543b8c5588177d986d6045021850a5078f4f05bbf0cdbd
|
|
| MD5 |
60ac9b311e9f6e8991d279ef3a191dd3
|
|
| BLAKE2b-256 |
4f68b7d6a8e7efe6ccc9143b211de8bba009db9472ee70c1d95bcd3d0e9d1f9b
|
File details
Details for the file inputval-1.0.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 103.7 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3613f83cfbe698b60e764fb6cf23d31a51968d87b16b61b02decf12ab63ca538
|
|
| MD5 |
3ba643eb526e60068a6c29aa0efa561b
|
|
| BLAKE2b-256 |
4580fcb3e48970419886a1b995ad9075f56a5464ee5df8a59423e73748d26009
|
File details
Details for the file inputval-1.0.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 21.9 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bb64d2d3c2db66d14db9a0b1082931409d1fb00741fb8dca105dfab117b959c
|
|
| MD5 |
bb2b6c4385c25dd8cb9ddc0f23c54954
|
|
| BLAKE2b-256 |
63d840ad8b295bf089658a0bd2dec205c4d0d033195416d7200612466b6ce76d
|
File details
Details for the file inputval-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 21.0 kB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6ec41338a46c3adee25be66e2dd3e6bc8d7bb7ecc8f0d2b09dd7d4b436c2ad3
|
|
| MD5 |
b0cb696bccb014255859b5f9c00ec56d
|
|
| BLAKE2b-256 |
86b65660fe4c9e8fc81f9577e15dc248035d85fe7635ea8bf3f88c4d5a3fe0f9
|
File details
Details for the file inputval-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 21.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96d347851aac00a915f58540d11f98e96252e335d2f5a41fcd6f0a7c36d38306
|
|
| MD5 |
7e51f80a597c16b0a50d5cb0def6673b
|
|
| BLAKE2b-256 |
e3b4f5d9e3ce1828d710a53e414a0723eada9361e7a8c1fd3a560ec7a91206ce
|
File details
Details for the file inputval-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 112.4 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de078bf794a69acbd6d7d20c27a92a97aa95879a9f7211e4807120c48d6ac503
|
|
| MD5 |
468aaeb5252d0a7b23146be94c728225
|
|
| BLAKE2b-256 |
e43a2ef0ed83d70df09f5dec563fe2d74864c9ad589b7aca3dc110c811bfb4d5
|
File details
Details for the file inputval-1.0.0-cp312-cp312-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 110.9 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
455faa73e3370614f31b9fba9d74590e0949c40be9fdc1f52885f3070459f11e
|
|
| MD5 |
4cfa5cab82b4b928d9ddef4fe0a4f07f
|
|
| BLAKE2b-256 |
e7db44ee14daa4e56195606a8d2cf78b0782da584697c1d38ff1719e1ebb1e9b
|
File details
Details for the file inputval-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 113.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
417e3c0b711a596956ece7e7d2934d1f3f515a0f92203f321f8b8fb7a9b9d6cd
|
|
| MD5 |
267961b84530c822c2b3da639c3c6d69
|
|
| BLAKE2b-256 |
a742c1271d0236505dca4fa5259c44385bffa50eac4234bcd7db8e233105b8fb
|
File details
Details for the file inputval-1.0.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 113.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e034cdf75c62f9b7eb6be138a44a8d9336655cf6a24971aac914c6dbb347138
|
|
| MD5 |
747b8c1935add56c3307bc2ca9eba658
|
|
| BLAKE2b-256 |
d2c07f6a8b4c50d44451908d62b31b982b539d6831da00a57988f681017153bb
|
File details
Details for the file inputval-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09a51c533d8ccac1c1379cb2ce8507859e05da8d40d3dedc0b052f6ea9b42705
|
|
| MD5 |
dfe5f14ba304dd9cea519dba76654ae3
|
|
| BLAKE2b-256 |
997a138f6b2eee08858d2ec2607d3dfe2fe92bc7cf5f26037a497eb16e2623cd
|
File details
Details for the file inputval-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 21.6 kB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1ad5603f3a1d3000b8f3424511c39e57204a59469df3a189a08ad857ca6c79
|
|
| MD5 |
7eba843defb34631187d4fa6d667c7f3
|
|
| BLAKE2b-256 |
2f71ea762ea2242a3dfdc7d335bc6dfdf909fb36c7a51bbafc6157ad6b2954c3
|
File details
Details for the file inputval-1.0.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 20.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b7c761db47b6b16880acd395ec6010110f626e75c7bf265e924cce46868630c
|
|
| MD5 |
22343817f7c75833b8fec4355befc3cf
|
|
| BLAKE2b-256 |
08a9a729e4b0b39a6dc327666cbf80e457383f74636b847b11acfb187497d7c4
|
File details
Details for the file inputval-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 108.7 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df21f8c2f1d60a9817abebeef268d9456cbfe9d004a28c09259d52961b598e09
|
|
| MD5 |
2f00c097186c1097f70f156a11576f1e
|
|
| BLAKE2b-256 |
1167a0e7c784e3a1a7192381a98b37019e01b277c493bf878428d0b894cd981d
|
File details
Details for the file inputval-1.0.0-cp311-cp311-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 106.3 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3333f9a11f7e8f5226ce567fbb0ad48be06e974b2658903cf1e292e486b15fed
|
|
| MD5 |
7f57aa6e0a54a2157555416acd69298d
|
|
| BLAKE2b-256 |
7c925e6febd39b638d4afda0849795ca0236c61a12e8be9e65724e60624a67f7
|
File details
Details for the file inputval-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 107.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62ad391ce6c3a92bdc32cdc4a4d66e34b3eb719a786fe6c619575da9ce80134f
|
|
| MD5 |
8050350bddfa99795394ae855a7d8778
|
|
| BLAKE2b-256 |
0792bca16d90ebba81784a0b5938f6138ac15deafd808f787b86304aff8f9566
|
File details
Details for the file inputval-1.0.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 107.5 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8dc3b3050c1d8279f15d0d058ff9230786bc5219e367c36610dbd878f3d65e6
|
|
| MD5 |
a3838638405d932177c10130c9f18888
|
|
| BLAKE2b-256 |
4a3a05dbd8cef6d78702c0e9b304ae8d631862f993104e26eaa9f41ccbd6b89f
|
File details
Details for the file inputval-1.0.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62b80b48b65ce6e1475057a6ac95b244decf51d96275baa33cb4c3ffb26b8c5c
|
|
| MD5 |
79e324114c9c37c60a3044f8a6e7b006
|
|
| BLAKE2b-256 |
b605c0581ccf8ced7d0f2e1a3f94a85419961d3b322cb4b500393efd4341c82e
|
File details
Details for the file inputval-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: inputval-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 21.2 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87f9363e23f816f468a34f0b48ef62e2b4cb4f3db6c65479abfdc7d7618badd4
|
|
| MD5 |
fed8b7166a5bf621bd73302601a9a901
|
|
| BLAKE2b-256 |
501590989b1871a35824ae1b8437f379c964d2fa89237f6eceebb25748921172
|