{"id":17959326,"url":"https://github.com/lltx/anti-replay","last_synced_at":"2026-07-30T00:31:09.904Z","repository":{"id":108077190,"uuid":"472661631","full_name":"lltx/anti-replay","owner":"lltx","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-22T07:46:10.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T17:53:13.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lltx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2022-03-22T07:44:07.000Z","updated_at":"2022-03-22T07:46:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"33afd5c6-f83b-4d37-8303-4166a34d49d7","html_url":"https://github.com/lltx/anti-replay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lltx/anti-replay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lltx%2Fanti-replay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lltx%2Fanti-replay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lltx%2Fanti-replay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lltx%2Fanti-replay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lltx","download_url":"https://codeload.github.com/lltx/anti-replay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lltx%2Fanti-replay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012997,"owners_count":26085222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-29T11:02:40.071Z","updated_at":"2025-10-12T21:21:52.684Z","avatar_url":"https://github.com/lltx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# naruto-anti-replay\n\n## 介绍\n\n基于SpringBoot封装的接口放重放、防篡改功能，基于Redis(Lettuce)实现分布式。\n\n## 软件架构\n\n框架     | 版本\n-------- | -----\nSpringBoot  | 2.3.2.RELEASE\nfastJson | 1.2.76\n\n## 使用说明\n\n#### Maven引入\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eonline.inote\u003c/groupId\u003e\n  \u003cartifactId\u003enaruto-anti-replay-spring-boot-starter\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.6-RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### 配置信息\n\n```\n# 缓存Key前缀\nnaruto.security.api.anti-replay.cache.cache-key-prefix=NARUTO:SECURITY:ANTI-REPLAY:REQUEST_ID_\n# 请求header属性Key\nnaruto.security.api.anti-replay.header-key.nonce=nonce\nnaruto.security.api.anti-replay.header-key.timestamp=timestamp\nnaruto.security.api.anti-replay.header-key.url=url\nnaruto.security.api.anti-replay.header-key.token=token\nnaruto.security.api.anti-replay.header-key.signature=signature\n# 请求过期时间\nnaruto.security.api.anti-replay.request.expire-time=60\n```\n\n注：底层已做默认配置，如果没有特殊要求，可不增加以上配置。\n\n#### API需要拦截的方法加注解@NarutoAntiReplay：\n\n```\n  @NarutoAntiReplay\n  @GetMapping(value = \"getInfo/{id}\")\n  public String getInfo(@PathVariable String id) {\n    return \"ok\";\n  }\n```\n\n详见naruto-anti-replay-spring-boot-sample。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flltx%2Fanti-replay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flltx%2Fanti-replay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flltx%2Fanti-replay/lists"}