Voila, new cms:md5 tag:

Add to addons-kfunctions.php
Code: Select all
$FUNCS->register_tag( 'md5', array('CustomTags', 'md5_hasher') );
class CustomTags{
    function md5_hasher( $params, $node ){
       
        if( count($node->children) ) {die("ERROR: Tag \"".$node->name."\" is a self closing tag");}
      $res = $params[0]['rhs'];
        return md5( $res );
    }
}

Usage: <cms:md5 'my_variable' />

Borrowed parts of code from @tim and @KK :lol: Thank you, guys.