glue-agency / craft-hash
Twig filter for hashing.
Installs: 1 007
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1
This package is not auto-updated.
Last update: 2024-11-22 14:16:29 UTC
README
Twig filter for hashing.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require glue-agency/craft-hash
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft-Hash.
Usage
{{ hash(String, Algorithm) }}
String
to hash (not required, defaults torandom_int(0, getrandmax())
)Algorithm
to use in hashing (not required, defaults to 'md5')
More info on available algorithms, please visit: https://www.php.net/manual/en/function.hash-algos.php