Skip to content

Commit

Permalink
update documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroishi committed Mar 31, 2021
1 parent 6267f64 commit 87e514c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Overview

PTA(Period of Time Authentication) module is a module for NGINX. Using
PTA you can control access to your contents. PTA calcurates a
encrypted query string that includes an expiration time and a path of
the content.

encrypted query string or cookie parameter that includes an expiration
time and a path of the content.

How to build
============
Expand Down Expand Up @@ -116,9 +115,11 @@ pta_auth_method
How it works
============

PTA module decrypts a query string starting from `pta=...' and check
CRC32, expiration time and requested URI path embedded in it. So you
need to generate PTA token and add it to a link as query string.
PTA module decrypts a query string or cookie parameter starting from
`pta=...' and check CRC32, expiration time and requested URI path
embedded in it. So you need to generate PTA token and add it to a link
as query string or cookie parameter. There are some codes under the
smaples directory to generate PTA.

format
------
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The html/ that contains sample files is supposed to be placed on /var/tmp.

memo
```
% perl pta.pl --key 0102030405060708090a0b0c0d0e0f00 --iv 00000000000000000000000000000000 --cipher 3174ffad10cc165d58d154bdbd8a65de
% perl ptapp.pl --key 0102030405060708090a0b0c0d0e0f00 --iv 00000000000000000000000000000000 --cipher 3174ffad10cc165d58d154bdbd8a65de
CRC: 0xa321cc2c (2736901164)
Date: Wed Jan 1 00:00:00 2025
URL: /*
Expand Down

0 comments on commit 87e514c

Please sign in to comment.