{"id":18077654,"url":"https://github.com/fukamachi/jose","last_synced_at":"2026-03-15T08:37:40.946Z","repository":{"id":136843843,"uuid":"94732390","full_name":"fukamachi/jose","owner":"fukamachi","description":"A JOSE implementation","archived":false,"fork":false,"pushed_at":"2024-11-25T06:16:35.000Z","size":41,"stargazers_count":34,"open_issues_count":4,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-11T19:13:13.385Z","etag":null,"topics":["jose","jws","jwt"],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/fukamachi.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":"2017-06-19T03:20:42.000Z","updated_at":"2025-02-09T10:43:48.000Z","dependencies_parsed_at":"2024-04-03T03:26:39.666Z","dependency_job_id":null,"html_url":"https://github.com/fukamachi/jose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fjose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fjose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fjose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fjose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fukamachi","download_url":"https://codeload.github.com/fukamachi/jose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393569,"owners_count":20931813,"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":["jose","jws","jwt"],"created_at":"2024-10-31T11:46:52.382Z","updated_at":"2026-03-15T08:37:35.896Z","avatar_url":"https://github.com/fukamachi.png","language":"Common Lisp","funding_links":[],"categories":["Recently Updated","Expert Systems"],"sub_categories":["[Feb 16, 2025](/content/2025/02/16/README.md)"],"readme":"# jose\n\n[![Quicklisp dist](http://quickdocs.org/badge/jose.svg)](http://quickdocs.org/jose/)\n[![Build Status](https://travis-ci.org/fukamachi/jose.svg?branch=master)](https://travis-ci.org/fukamachi/jose)\n[![Coverage Status](https://coveralls.io/repos/fukamachi/jose/badge.svg?branch=master)](https://coveralls.io/r/fukamachi/jose)\n\nA JSON Object Signing and Encryption (JOSE) implementation for Common Lisp.\n\n## Usage\n\n### HMAC\n\n```common-lisp\n(defvar *key* (ironclad:ascii-string-to-byte-array \"my$ecret\"))\n\n(defvar *token*\n  (jose:encode :hs256 *key* '((\"hello\" . \"world\"))))\n\n*token*\n;=\u003e \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJoZWxsbyI6IndvcmxkIn0.Vr0VKL9WHX9lUPWzrE0DX4fEvl0_CgnKlzI2mWiro8E\"\n\n(jose:decode :hs256 *key* *token*)\n;=\u003e ((\"hello\" . \"world\"))\n;   ((\"alg\" . \"HS256\") (\"typ\" . \"JWT\"))\n\n;; Decoding without signature verification.\n(jose:inspect-token *token*)\n;=\u003e ((\"hello\" . \"world\"))\n;   ((\"alg\" . \"HS256\") (\"typ\" . \"JWT\"))\n;   #(142 123 175 222 84 4 134 19 70 182 50 209 29 113 176 40 82 42 241 90 230 91\n;     176 235 254 57 221 93 97 220 6 101)\n```\n\n### RSA\n\nFor RSA algorithm, the key must be an instance of Ironclad public/private key, that can be generated with `ironclad:generate-key-pair`.\n\nTo read from OpenSSH key files, use [cl-ssh-keys](https://github.com/dnaeon/cl-ssh-keys). To parse ASN.1 keys, [asn1](https://github.com/fukamachi/asn1) library will help.\n\n```common-lisp\n;; Generate a new key pairs with Ironclad\n(defvar *private-key*\n  (ironclad:generate-key-pair :rsa :num-bits 2048))\n\n;; Or, read a private key file generated by OpenSSH\n(defvar *private-key*\n  (ssh-keys:parse-private-key-file #P\"~/.ssh/id_rsa\"))\n\n(defvar *token*\n  (jose:encode :rs256 *private-key* '((\"hello\" . \"world\"))))\n```\n\n## Supported Algorithms\n\n* HS256\n* HS384\n* HS512\n* RS256\n* RS384\n* RS512\n* PS256\n* PS384\n* PS512\n* none\n\n## See Also\n\n* [JOSE Working Group](https://datatracker.ietf.org/wg/jose/about/)\n\n## Author\n\n* Eitaro Fukamachi (e.arrows@gmail.com)\n\n## Copyright\n\nCopyright (c) 2017 Eitaro Fukamachi (e.arrows@gmail.com)\n\n## License\n\nLicensed under the BSD 2-Clause License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukamachi%2Fjose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffukamachi%2Fjose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukamachi%2Fjose/lists"}