{"id":15561977,"url":"https://github.com/thekuwayama/simple_nts_client","last_synced_at":"2025-04-23T23:06:36.879Z","repository":{"id":56576999,"uuid":"196468835","full_name":"thekuwayama/simple_nts_client","owner":"thekuwayama","description":"Simple NTS(Network Time Security) Client","archived":false,"fork":false,"pushed_at":"2021-08-21T22:24:07.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T23:06:22.675Z","etag":null,"topics":["cli","ntp","nts","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thekuwayama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-11T21:44:40.000Z","updated_at":"2023-03-30T19:05:59.000Z","dependencies_parsed_at":"2022-08-15T21:20:21.654Z","dependency_job_id":null,"html_url":"https://github.com/thekuwayama/simple_nts_client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Fsimple_nts_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Fsimple_nts_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Fsimple_nts_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thekuwayama%2Fsimple_nts_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thekuwayama","download_url":"https://codeload.github.com/thekuwayama/simple_nts_client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528732,"owners_count":21445516,"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":["cli","ntp","nts","ruby"],"created_at":"2024-10-02T16:10:52.367Z","updated_at":"2025-04-23T23:06:36.823Z","avatar_url":"https://github.com/thekuwayama.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple_nts_client\n\n[![Gem Version](https://badge.fury.io/rb/simple_nts_client.svg)](https://badge.fury.io/rb/simple_nts_client)\n[![CI](https://github.com/thekuwayama/simple_nts_client/workflows/CI/badge.svg)](https://github.com/thekuwayama/simple_nts_client/actions?workflow=CI)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7b34a4868f1e297af084/maintainability)](https://codeclimate.com/github/thekuwayama/simple_nts_client/maintainability)\n\nsimple\\_nts\\_client is CLI that is simple NTS(Network Time Security) Client implementation.\nThis CLI prints the now timestamp got with NTS.\nCurrent implementation is based on:\n\n* https://datatracker.ietf.org/doc/html/rfc8915\n\n\n## Installation\n\nThe gem is available at [rubygems.org](https://rubygems.org/gems/simple_nts_client). You can install it the following:\n\n```sh-session\n$ gem install simple_nts_client\n```\n\n\n## Usage\n\n```sh-session\n$ simple_nts_client --help\nUsage: simple_nts_client [options]\n    -s, --server VALUE               NTS-KE server name (default time.cloudflare.com)\n    -p, --port VALUE                 NTS-KE port number (default 4460)\n    -v, --verbose                    verbose mode       (default false)\n```\n\nYou can run it the following:\n\n```sh-session\n$ simple_nts_client\n2020-10-30 20:00:00 +0900\n```\n\nIf you need to access other NTS-KE server or port, you can run it the following:\n\n```sh-session\n$ simple_nts_client --server YOURSERVER --port YOURPORT\n2020-10-30 20:00:00 +0900\n```\n\n\n## How \"simple\" client?\n\n* The CLI supports only `AEAD_AES_SIV_CMAC_256` as AEAD algorithms to protect the NTPv4 packet.\n* The CLI sends the first one of the received cookies via the response of the New Cookie for NTPv4 record and discards cookies that didn't send.\n* The CLI just prints the timestamp adjusted by calculated system clock offset.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekuwayama%2Fsimple_nts_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthekuwayama%2Fsimple_nts_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthekuwayama%2Fsimple_nts_client/lists"}