https://github.com/xtekky/simple-sig
Simple Signature to secure your website's traffic with backend validation api
https://github.com/xtekky/simple-sig
http-signature http-signatures javascript obfuscation security signature signature-verification web-security
Last synced: about 1 year ago
JSON representation
Simple Signature to secure your website's traffic with backend validation api
- Host: GitHub
- URL: https://github.com/xtekky/simple-sig
- Owner: xtekky
- Created: 2022-11-05T23:20:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-06T01:22:11.000Z (over 3 years ago)
- Last Synced: 2025-03-24T18:21:20.946Z (over 1 year ago)
- Topics: http-signature, http-signatures, javascript, obfuscation, security, signature, signature-verification, web-security
- Homepage:
- Size: 748 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-Sig
Simple Signature to secure your website's traffic with backend validation api
#### Usage example
```html
sig demo
test
```
```js
$('#test').click(function() {
data = 'username=grgrg&password=1234'
fetch("/test", {
headers: {
...x(data),
},
body : data,
method : "POST",
mode : "cors",
});
});
```
#### Backend (verification api)
```curl
curl -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Length: 156' -H 'Content-Type: application/json' -H 'User-Agent: python-requests/2.28.1' -d '{"x-kspx-00": "x-kspx-00 HEADER", "x-tx-00": "x-tx-00 HEADER", "data": "POST DATA"}' https://sig.xtekky.repl.co/verify
```
- response :
```json
{
"is_valid": True/False,
"tts": time elapsed since sig creation (you can then define a limit so sig cant be used again)
}
```
#### Heavy obfuscation - fast execution
