Skip to content
A simple plugin to add an MD5 filter to twig
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/img
src
.craftplugin
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json

README.md

MD5 Twig Filter plugin for Craft CMS 3.x

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

IMPORTANT! Do not use md5 to hash passwords or other sensitive data, MD5 is considered crytographically broken.

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 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 steadfastcollective/md5-twig-filter
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for MD5 Twig Filter.

Using MD5 Twig Filter

    {{ md5("some string" }}
    {{ "some string" | md5 }}

Brought to you by Steadfast Collective

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.