{"id":32211057,"url":"https://github.com/tomill/text-shinobi","last_synced_at":"2026-07-13T19:32:18.898Z","repository":{"id":56836630,"uuid":"69110968","full_name":"tomill/Text-Shinobi","owner":"tomill","description":"忍びいろは (Ninja Alphabet) encoding","archived":false,"fork":false,"pushed_at":"2025-04-27T06:58:46.000Z","size":19,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T07:37:56.260Z","etag":null,"topics":["ninja"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Text::Shinobi","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomill.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-24T15:36:12.000Z","updated_at":"2025-04-27T06:58:49.000Z","dependencies_parsed_at":"2022-09-09T19:11:01.151Z","dependency_job_id":null,"html_url":"https://github.com/tomill/Text-Shinobi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tomill/Text-Shinobi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomill%2FText-Shinobi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomill%2FText-Shinobi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomill%2FText-Shinobi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomill%2FText-Shinobi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomill","download_url":"https://codeload.github.com/tomill/Text-Shinobi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomill%2FText-Shinobi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280395515,"owners_count":26323515,"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-22T02:00:06.515Z","response_time":63,"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":["ninja"],"created_at":"2025-10-22T06:46:18.956Z","updated_at":"2025-10-22T06:46:21.525Z","avatar_url":"https://github.com/tomill.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nText::Shinobi - 忍びいろは (Ninja Alphabet) encoding\n\n# SYNOPSIS\n\n    use Text::Shinobi qw/shinobi/;\n\n    print shinobi('しのび'); # =\u003e 𨊂浾⽕紫゙\n\n# DESCRIPTION\n\n\"Shinobi Iroha\" is a method to encrypt message that Ninja used.\nThis substitution cipher maps Japanese Kana characters to Kanji.\n\nText::Shinobi encoding table is based on 萬川集海 the Ninja technique encyclopedia; compiled in 1676.\nThe exact character table has not been revealed in the book (as strictly confidential).\nThis module adopted table \"generally known\" in current Ninjalogy.\n\n\u003cimg src=\"https://e8y.net/images/2016/shinobi-iroha.jpg\"\u003e\n\n# METHODS\n\n## encode()\n\n    Text::Shinobi-\u003eencode('あいう！'); # 𣘸栬𡋽！\n\nReturns encrypted input text (unicode string).\nOnly Hiragana and Katakana are converts, other characters are left.\n\n### $Text::Shinobi::ENCODE\n\nBy default, `encode()` select a Kanji character following rules:\n\n1. use single character if same shape unicode exists.\n2. viewable in major browser version. (device fonts supported)\n\nSo this module's default might change in the future.\n\nYou can change encode option by `$Text::Shinobi::ENCODE` class variable with below constants.\n\n    # DUO: double character only\n    local $Text::Shinobi::ENCODE = Text::Shinobi::DUO;\n    Text::Shinobi-\u003eencode('あいう'); # =\u003e ⽊黒⽊⾊⼟⾚\n\n    # UTF8MB3: exclude 4 bytes code as utf-8\n    local $Text::Shinobi::ENCODE = Text::Shinobi::UTF8MB3;\n    Text::Shinobi-\u003eencode('あいう'); # =\u003e ⽊黒栬⼟⾚\n\n## decode()\n\n    Text::Shinobi-\u003edecode('𣘸栬𡋽？'); # あいう？\n\nReturns text to try decode input text (unicode string).\n\n# EXPORTS\n\nNo exports by default.\n\n## shinobi()\n\n    use Text::Shinobi qw/shinobi/;\n\n    shinobi('...');\n\nShortcut to `Text::Shinobi-\u003eencode(...)`.\n\n# ADVANCED USAGE\n\nRomaji to shinobi iroha: use [Lingua::JA::Kana](http://search.cpan.org/perldoc?Lingua::JA::Kana);\n\n    use Lingua::JA::Kana;\n\n    shinobi(romaji2hiragana('ninja!'));\n\n# REFERENCES\n\n- 中島篤巳 (2015) 完本 万川集海\n\u003chttp://www.amazon.co.jp/dp/4336057672/\u003e\n- うみほたる Nishiki-teki+01 Shinobi Iroha \n[http://d.hatena.ne.jp/Umihotaru/20111216/1324033352](http://d.hatena.ne.jp/Umihotaru/20111216/1324033352)\n\n# SEE ALSO\n\n[http://e8y.net/2016/09/27/shinobi-iroha/](http://e8y.net/2016/09/27/shinobi-iroha/)\n\n# AUTHOR\n\nNaoki Tomita aka \"Tomimaru\" \u003ctomita@cpan.org\u003e\n\n# LICENSE\n\nCopyright (C) Naoki Tomita.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomill%2Ftext-shinobi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomill%2Ftext-shinobi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomill%2Ftext-shinobi/lists"}