Skip to content

christopherdowson/SHA1TwigFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sha1 Twig Filter plugin for Craft CMS 4.x

A simple filter for twig to hash a string with sha1.

Acknowledgements

Based on the MD5 Twig filter from Steadfast Collective. https://packagist.org/packages/steadfastcollective/md5-twig-filter

Requirements

This plugin requires Craft CMS 4.x or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require christopherdowson/sha1twigfilter
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for sha1 Twig Filter.

Using sha1 Twig Filter

    {{ sha1("some string" }}
    {{ "some string" | sha1 }}

Brought to you by Christopher Dowson Glasses by tulpahn from Noun Project

SHA1TwigFilter

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages