{"id":28534557,"url":"https://github.com/weavejester/crypto-equality","last_synced_at":"2025-07-07T22:32:14.777Z","repository":{"id":46993048,"uuid":"12568243","full_name":"weavejester/crypto-equality","owner":"weavejester","description":"A small Clojure library for securely comparing strings or byte arrays","archived":false,"fork":false,"pushed_at":"2021-09-18T14:11:06.000Z","size":9,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T17:13:33.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/weavejester.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}},"created_at":"2013-09-03T15:54:36.000Z","updated_at":"2024-10-31T21:32:02.000Z","dependencies_parsed_at":"2022-08-12T19:50:11.350Z","dependency_job_id":null,"html_url":"https://github.com/weavejester/crypto-equality","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/weavejester/crypto-equality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fcrypto-equality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fcrypto-equality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fcrypto-equality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fcrypto-equality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weavejester","download_url":"https://codeload.github.com/weavejester/crypto-equality/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fcrypto-equality/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260058105,"owners_count":22952889,"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","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":"2025-06-09T17:11:54.224Z","updated_at":"2025-07-07T22:32:14.772Z","avatar_url":"https://github.com/weavejester.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypto-equality\n\nA very small Clojure library for protecting against\n[timing attacks][1] when comparing strings or sequences of bytes.\n\nThis is useful for comparing user-supplied values against secrets held\nby the application, such as tokens or keys.\n\n[1]: https://en.wikipedia.org/wiki/Timing_attack\n\n## Installation\n\nAdd the following dependency to your `project.clj` file:\n\n    [crypto-equality \"1.0.1\"]\n\n## Usage\n\nRequire the `crypto.equality` namespace:\n\n```clojure\n(require '[crypto.equality :as crypto])\n```\n\nThen use the `eq?` function to compare strings, byte arrays, or any\nordered sequence of integers.\n\n```clojure\n(crypto/eq? \"foo\" \"foo\") ;; =\u003e true\n(crypto/eq? \"foo\" \"bar\") ;; =\u003e false\n```\n\n## License\n\nCopyright © 2021 James Reeves\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavejester%2Fcrypto-equality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweavejester%2Fcrypto-equality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavejester%2Fcrypto-equality/lists"}