Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Nov 29, 2024
1 parent 78dbbd3 commit c130c4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ python -m unittest discover tests
Here’s a basic example of how to use the ALTCHA Python Library:

```python
import datetime
from altcha import ChallengeOptions, create_challenge, verify_solution

def main():
hmac_key = "secret hmac key"

# Create a new challenge
options = ChallengeOptions(
expires=datetime.datetime.now() + datetime.timedelta(hours=1),
max_number=100000, # The maximum random number
hmac_key=hmac_key,
)
Expand Down

0 comments on commit c130c4c

Please sign in to comment.