{"id":26063209,"url":"https://github.com/edgio/ectoken","last_synced_at":"2025-12-14T21:01:08.779Z","repository":{"id":38218016,"uuid":"67722294","full_name":"Edgio/ectoken","owner":"Edgio","description":"Token Generator for Edgio Token-Based Authentication from Edgio","archived":false,"fork":false,"pushed_at":"2022-06-23T02:56:11.000Z","size":3438,"stargazers_count":22,"open_issues_count":5,"forks_count":41,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-06-22T05:17:50.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/Edgio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-08T16:48:44.000Z","updated_at":"2025-01-06T11:42:55.000Z","dependencies_parsed_at":"2022-09-26T18:21:52.976Z","dependency_job_id":null,"html_url":"https://github.com/Edgio/ectoken","commit_stats":null,"previous_names":["verizondigital/ectoken"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Edgio/ectoken","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Fectoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Fectoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Fectoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Fectoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edgio","download_url":"https://codeload.github.com/Edgio/ectoken/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Fectoken/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261250208,"owners_count":23130537,"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-03-08T16:33:47.077Z","updated_at":"2025-10-24T21:05:05.939Z","avatar_url":"https://github.com/Edgio.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ectoken\n\u003e _C implementation of Edgio token (`ectoken`)_\n\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#license)\n\n\n## Background\n\nC implementation of the \"Edgio Token\" (`ectoken`), an [AES-GCM](https://tools.ietf.org/html/rfc5288) token.\n\n## Install\n\nThe C implementation requires [`gcc`](https://gcc.gnu.org/) to build and [OpenSSL](https://www.openssl.org/) `libcrypto`to link.\n \n### Building with Make\n\nTo build, run the `make` command.\n\n```sh\nectoken\u003emake\ngcc -O2 -Wall -Werror -std=gnu99 util/ectoken_cmd.c -I. ectoken.c base64.c -o ectoken -lcrypto  -lm\ncc    -c -o ectoken.o ectoken.c\ncc    -c -o base64.o base64.c\nar rcs libectoken.a ectoken.o base64.o\n```\n\nThis will build a library and an executable (`ectoken`) for command line usage.\n\n### Running tests\n\nRun `make test` from the project directory.\n\n```sh\nectoken\u003emake test\ngcc -O2 -Wall -Werror -std=gnu99 util/ectoken_cmd.c -I. ectoken.c base64.c -o ectoken -lcrypto  -lm\ncc    -c -o ectoken.o ectoken.c\ncc    -c -o base64.o base64.c\nar rcs libectoken.a ectoken.o base64.o\ngcc -std=c99 -I. tests/ectoken_test.c -lcrypto -lm -o ectoken_test\n./ectoken_test\ntest_short_size_calculations\nsuccess\n...\ntest_full_flow\nsuccess\n\ntest_full_flow\nsuccess\n```\n\n\n## Usage\n\n### Help\n```sh\n\u003e./ectoken \nError wrong number of arguments specified\nUsage: \n To Encrypt:\n     ectoken \u003ckey\u003e \u003ctext\u003e\n or:\n     ectoken encrypt \u003ckey\u003e \u003ctext\u003e\n To Decrypt:\n     ectoken decrypt \u003ckey\u003e \u003ctext\u003e\n```\n\n### Encrypt\n\nEncrypt clear text token `\u003ctoken\u003e` with key: `\u003ckey\u003e`:\n```sh\n\u003e./ectoken encrypt MY_SECRET_KEY MY_COOL_TOKEN\nfVSYBBTynMkvQECGV-Kdfp333R-MGY2fsrrpVyuqd7OiuAUsQ8ITrL0\n```\n\n### Decrypt\n\nDecrypt ciphertext token `\u003ctoken\u003e` with key: `\u003ckey\u003e`:\n```sh\n\u003e./ectoken decrypt MY_SECRET_KEY fVSYBBTynMkvQECGV-Kdfp333R-MGY2fsrrpVyuqd7OiuAUsQ8ITrL0\nMY_COOL_TOKEN\n```\n\n\n## Contribute\n\n- We welcome issues, questions and pull requests.\n\n\n## License\n\nThis project is licensed under the terms of the Apache 2.0 open source license. Please refer to the `LICENSE-2.0.txt` file for the full terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgio%2Fectoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgio%2Fectoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgio%2Fectoken/lists"}