{"id":15557757,"url":"https://github.com/fgasper/p5-crypt-perl","last_synced_at":"2025-04-23T21:08:57.047Z","repository":{"id":51719351,"uuid":"76131074","full_name":"FGasper/p5-Crypt-Perl","owner":"FGasper","description":"CPAN’s Crypt::Perl","archived":false,"fork":false,"pushed_at":"2024-06-03T14:14:04.000Z","size":1081,"stargazers_count":4,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T21:08:48.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FGasper.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-10T18:48:15.000Z","updated_at":"2023-01-06T20:52:56.000Z","dependencies_parsed_at":"2024-06-18T21:52:41.830Z","dependency_job_id":null,"html_url":"https://github.com/FGasper/p5-Crypt-Perl","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Crypt-Perl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Crypt-Perl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Crypt-Perl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Crypt-Perl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGasper","download_url":"https://codeload.github.com/FGasper/p5-Crypt-Perl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514786,"owners_count":21443209,"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":"2024-10-02T15:20:34.122Z","updated_at":"2025-04-23T21:08:57.021Z","avatar_url":"https://github.com/FGasper.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nCrypt::Perl - Cryptography in pure Perl\n\n# DESCRIPTION\n\n\u003cdiv\u003e\n    \u003ca href='https://coveralls.io/github/FGasper/p5-Crypt-Perl?branch=master'\u003e\u003cimg src='https://coveralls.io/repos/github/FGasper/p5-Crypt-Perl/badge.svg?branch=master' alt='Coverage Status' /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nJust as it sounds: cryptography with no non-core XS dependencies!\nThis is useful if you don’t have access to\nother tools that do this work like [OpenSSL](http://openssl.org), [CryptX](https://metacpan.org/pod/CryptX),\netc. Of course, if you do have access to one of those tools, they may suit\nyour purpose better.\n\nSee submodules for usage examples of:\n\n- Key generation\n- Key parsing\n- Signing \u0026 verification\n- Encryption \u0026 decryption\n- Import ([Crypt::Perl::PK](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3APK)) from \u0026 export to [JSON Web Key](https://tools.ietf.org/html/rfc7517) format\n- [JWK thumbprints](https://tools.ietf.org/html/rfc7638)\n- Certificate Signing Request (PKCS #10) generation ([Crypt::Perl::PKCS10](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3APKCS10))\n- SSL/TLS certificate (X.509) generation ([Crypt::Perl::X509v3](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3AX509v3)), including\na broad variety of extensions\n\n# SUPPORTED PUBLIC KEY ALGORITHMS\n\n- [RSA](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3ARSA)\n- [ECDSA](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3AECDSA)\n- [Ed25519](https://metacpan.org/pod/Crypt%3A%3APerl%3A%3AEd25519)\n\n# SECURITY\n\nRandom number generation here comes from [Bytes::Random::Secure::Tiny](https://metacpan.org/pod/Bytes%3A%3ARandom%3A%3ASecure%3A%3ATiny).\nSee that module’s documentation for details of its reliability.\n\nAn extensive test suite is included that compares against\n[OpenSSL](https://openssl.org) and\n[LibTomCrypt](https://www.libtom.net/LibTomCrypt/) (i.e., [CryptX](https://metacpan.org/pod/CryptX)),\nwhen available.\n\nThat said: **NO GUARANTEES!!!** It’s best to restrict use of this library\nto contexts where more “visible” cryptography libraries like the ones\nmentioned elsewhere here are unavailable.\n\nAnd of course, [OpenSSL has not been trouble-free, either …](https://www.openssl.org/news/vulnerabilities.html)\n\nCaveat emptor.\n\n# HISTORICAL VULNERABILITIES\n\n- [CVE-2020-13895](https://nvd.nist.gov/vuln/detail/CVE-2020-13895)\n- [CVE-2020-17478](https://nvd.nist.gov/vuln/detail/CVE-2020-17478)\n\n# SPEED\n\nRSA key generation is slow—too slow, probably, unless you have\n[Math::BigInt::GMP](https://metacpan.org/pod/Math%3A%3ABigInt%3A%3AGMP) or [Math::BigInt::Pari](https://metacpan.org/pod/Math%3A%3ABigInt%3A%3APari) (either of which requires XS).\nIt’s one application where pure-Perl cryptography just doesn’t seem\nfeasible. :-( Everything else, though, including all ECDSA and Ed25519\noperations, should be fine even in pure Perl.\n\nNote that this distribution’s test suite is also pretty slow without an\nXS backend.\n\n# TODO\n\nThere are TODO items listed in the submodules; the following are general\nto the entire distribution.\n\n- Document the exception system so that applications can use it.\n- Add more tests, e.g., against [CryptX](https://metacpan.org/pod/CryptX).\n- Some formal security audit would be nice.\n- Make it faster :)\n\n# ACKNOWLEDGEMENTS\n\nMuch of the logic here comes from Kenji Urushima’s [jsrsasign](https://github.com/kjur/jsrsasign).\n\nMost of the tests depend on the near-ubiquitous [OpenSSL](http://openssl.org),\nwithout which the Internet would be a very, very different reality from\nwhat we know!\n\nThe Ed25519 logic is ported from [forge.js](https://github.com/digitalbazaar/forge/blob/master/lib/ed25519.js).\n\nDeterministic ECDSA logic derived in part from\n[python-ecdsa](https://github.com/ecdsa/python-ecdsa).\n\nOther parts are ported from [LibTomCrypt](http://www.libtom.net).\n\nSpecial thanks to Antonio de la Piedra for having submitted\nmultiple high-quality, in-depth bug reports.\n\n# LICENSE\n\nThis library is licensed under the same license as Perl.\n\n# AUTHOR\n\nFelipe Gasper (FELIPE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-crypt-perl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgasper%2Fp5-crypt-perl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-crypt-perl/lists"}