{"id":19357749,"url":"https://github.com/joomla-framework/crypt","last_synced_at":"2025-04-11T03:38:14.839Z","repository":{"id":7094454,"uuid":"8385736","full_name":"joomla-framework/crypt","owner":"joomla-framework","description":"Joomla Framework Crypt Package","archived":false,"fork":false,"pushed_at":"2024-08-17T10:06:56.000Z","size":5549,"stargazers_count":6,"open_issues_count":0,"forks_count":9,"subscribers_count":14,"default_branch":"3.x-dev","last_synced_at":"2024-09-17T15:53:20.036Z","etag":null,"topics":["decryption","encryption","joomla","joomla-framework","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joomla-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"joomla","custom":"https://community.joomla.org/sponsorship-campaigns.html"}},"created_at":"2013-02-24T03:16:52.000Z","updated_at":"2024-08-15T19:53:52.000Z","dependencies_parsed_at":"2024-08-17T11:24:37.722Z","dependency_job_id":"f5f61692-7e11-4673-9253-46916589d9e5","html_url":"https://github.com/joomla-framework/crypt","commit_stats":{"total_commits":164,"total_committers":19,"mean_commits":8.631578947368421,"dds":0.3475609756097561,"last_synced_commit":"c6bb2b8462b45e324f51f05a75e7fdc5eff6a2d3"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joomla-framework","download_url":"https://codeload.github.com/joomla-framework/crypt/tar.gz/refs/heads/3.x-dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248338377,"owners_count":21087207,"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":["decryption","encryption","joomla","joomla-framework","php"],"created_at":"2024-11-10T07:09:03.519Z","updated_at":"2025-04-11T03:38:14.809Z","avatar_url":"https://github.com/joomla-framework.png","language":"PHP","funding_links":["https://github.com/sponsors/joomla","https://community.joomla.org/sponsorship-campaigns.html"],"categories":[],"sub_categories":[],"readme":"# The Crypt Package [![Build Status](https://ci.joomla.org/api/badges/joomla-framework/crypt/status.svg?ref=refs/heads/3.x-dev)](https://ci.joomla.org/joomla-framework/crypt)\n\n[![Latest Stable Version](https://poser.pugx.org/joomla/crypt/v/stable)](https://packagist.org/packages/joomla/crypt)\n[![Total Downloads](https://poser.pugx.org/joomla/crypt/downloads)](https://packagist.org/packages/joomla/crypt)\n[![Latest Unstable Version](https://poser.pugx.org/joomla/crypt/v/unstable)](https://packagist.org/packages/joomla/crypt)\n[![License](https://poser.pugx.org/joomla/crypt/license)](https://packagist.org/packages/joomla/crypt)\n\nThe Crypt password provides a set of classes that can be used for encrypting and hashing data.\n\n## Interfaces\n\n### `PasswordInterface`\n\n`PasswordInterface` is an interface that requires a class to be implemented with a create and a verify method.\n\nThe create method should take a plain text password and a type and return a hashed password.\n\nThe verify method should accept a plain text password and a hashed password and return a boolean indicating whether or not the password matched the password in the hash.\n\nThe `PasswordInterface` interface defines the following constants for use with implementations:\n\n- `PasswordInterface::BLOWFISH`\n- `PasswordInterface::JOOMLA`\n- `PasswordInterface::MD5`\n- `PasswordInterface::PBKDF`\n\n## Classes\n\n### `Password\\Simple`\n\n#### Usage\n\nIn addition to the interface `PasswordInterface` there is also a basic implementation provided which provides for use with the most common password schemes. This if found in the `Password\\Simple` class.\n\nAside from the two methods create and verify methods, this implementation also adds an additional method called setCost. This method is used to set a cost parameter for methods that support workload factors. It takes an integer cost factor as a parameter.\n\n`Password\\Simple` provides support for bcrypt, MD5 and the traditional Joomla! CMS hashing scheme. The hash format can be specified during hash creation by using the constants `PasswordInterface::BLOWFISH`, `PasswordInterface::MD5`, `PasswordInterface::JOOMLA`, and `PasswordInterface::PBKDF`. An appropriate salt will be automatically generated when required.\n\n\n# Installation via Composer\n\nAdd `\"joomla/crypt\": \"~3.0\" to the require block in your composer.json and then run `composer install`.\n\n```json\n{\n\t\"require\": {\n\t\t\"joomla/crypt\": \"~3.0\"\n\t}\n}\n```\n\nAlternatively, you can simply run the following from the command line:\n\n```sh\ncomposer require joomla/crypt \"~3.0\"\n```\n\nIf you want to include the test sources, use\n\n```sh\ncomposer require --prefer-source joomla/crypt \"~3.0\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoomla-framework%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoomla-framework%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoomla-framework%2Fcrypt/lists"}