{"id":15986654,"url":"https://github.com/softcreatr/wsc-crypto-ts","last_synced_at":"2026-02-01T05:32:31.210Z","repository":{"id":256963824,"uuid":"856942596","full_name":"SoftCreatR/wsc-crypto-ts","owner":"SoftCreatR","description":"PoC of cryptographic utility functions for WoltLab Suite Core, implemented in TypeScript.","archived":false,"fork":false,"pushed_at":"2024-09-13T14:33:36.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T07:44:16.747Z","etag":null,"topics":["crypto","cryptography","typescript","woltlab","woltlab-suite","woltlab-suite-core","wsc"],"latest_commit_sha":null,"homepage":"https://1-2.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoftCreatR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"softcreatr","custom":["https://ecologi.com/softcreatr?r=61212ab3fc69b8eb8a2014f4"]}},"created_at":"2024-09-13T13:58:41.000Z","updated_at":"2025-11-04T23:09:28.000Z","dependencies_parsed_at":"2024-09-14T05:29:00.838Z","dependency_job_id":null,"html_url":"https://github.com/SoftCreatR/wsc-crypto-ts","commit_stats":null,"previous_names":["softcreatr/wsc-crypto-ts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SoftCreatR/wsc-crypto-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftCreatR%2Fwsc-crypto-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftCreatR%2Fwsc-crypto-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftCreatR%2Fwsc-crypto-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftCreatR%2Fwsc-crypto-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoftCreatR","download_url":"https://codeload.github.com/SoftCreatR/wsc-crypto-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftCreatR%2Fwsc-crypto-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T04:44:20.970Z","status":"ssl_error","status_checked_at":"2026-02-01T04:44:19.994Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","cryptography","typescript","woltlab","woltlab-suite","woltlab-suite-core","wsc"],"created_at":"2024-10-08T03:02:29.288Z","updated_at":"2026-02-01T05:32:31.188Z","avatar_url":"https://github.com/SoftCreatR.png","language":"TypeScript","funding_links":["https://github.com/sponsors/softcreatr","https://ecologi.com/softcreatr?r=61212ab3fc69b8eb8a2014f4"],"categories":[],"sub_categories":[],"readme":"# wsc-crypto-ts\n\nPoC of cryptographic utility functions for WoltLab Suite Core, implemented in TypeScript.\n\n## Overview\n\nThis project provides cryptographic helper functions, including:\n\n- Creating secure signatures based on the Keyed-Hash Message Authentication Code (HMAC) algorithm.\n- Hexadecimal encoding and decoding without cache-timing leaks.\n\n## Installation\n\n```bash\nnpm install wsc-crypto-ts\n```\n\n## Usage\n\n### Creating a Signed String\n\n```typescript\nimport { createSignedStringForSession } from 'wsc-crypto-ts';\n\n// Your session ID and secret\nconst sessionID = 'your-session-id';\nconst secret = 'your-secret-key';\n\n// Create a signed string\nconst signedString = createSignedStringForSession(sessionID, secret);\n\nconsole.log('Signed String:', signedString);\n```\n\n### Verifying a Signed String\n\n```typescript\nimport { CryptoUtil } from 'wsc-crypto-ts';\n\n// Initialize CryptoUtil with your secret\nconst cryptoUtil = new CryptoUtil(secret);\n\n// Verify and decode the signed string\nconst decodedValue = cryptoUtil.verifySignedString(signedString);\n\nif (decodedValue !== null) {\n  console.log('Decoded Value:', decodedValue.toString('utf8'));\n} else {\n  console.error('Invalid signature!');\n}\n```\n\n## License\n\nThis project is licensed under the ISC License. See the [LICENSE](LICENSE.md) file for details.\n\n## Author\n\n- **Sascha Greuel**\n- **Email:** [hello@1-2.dev](mailto:hello@1-2.dev)\n- **GitHub:** [SoftCreatR](https://github.com/SoftCreatR)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftcreatr%2Fwsc-crypto-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftcreatr%2Fwsc-crypto-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftcreatr%2Fwsc-crypto-ts/lists"}