没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > PyAuthTicket |
|
PyAuthTicket
|
| 1 | 0 | 6 |
| 贡献者 | 讨论 | 代码提交 |
概述
PyAuthTicket is a simple way to use HMAC for limited time authorization tickets.
PyAuthTicket uses HMAC to generate a one time ticket based on a secret key, message (optional) and timestamp (defaults to the current time).
If both sides know a secret key (ie, an API key), a receiver can verify the identity of a sender by requiring a ticket digest and the timestamp used to create it along with the actual request.
To verify the sender, the receiver would create a ticket with the same credentials (key, request, timestamp) and verify it against the provided digest. This does not prevent replay attacks but as the timestamp is provided, a lower threshold can be set to reduce the time window in which replays can run.
创建时间:2014-05-06 17:20
标签:
