GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Template::Plugin::Utils(3) User Contributed Perl Documentation OpenXPKI::Template::Plugin::Utils(3)

Plugin for Template::Toolkit providing some string manipulation functions.

You need to load the plugin into your template before using it. As we do not export the methods, you need to address them with the plugin name, e.g.

    [% USE Utils %]
    [% Utils.ascii_to_hex(value) %]

Will output the converted string.

uuid

Generate a UUID v3 string (e.g. 4162F712-1DD2-11B2-B17E-C09EFE1DC403)

This is simply a wrapper around Data::UUID->gen_str.

ascii_to_hex

Convert a ascii string to its hexadecimal representation, e.g. "OpenXPKI" becomes 4f70656e58504b49.

to_base64 ( text )

Encode the given (binary) data using Base64 encoding, output is without linebreaks or spaces.

sha256 ( text, secret )

Return the sha256 digest of the given input data in hexadecimal representation. If the second argument is given it is used as secret key to calculate sha256 HMAC instead of a plain digest.

Provides the same functionality as Certificate.dn but expects the subject DN to parse as string in the first argument.

Returns the DN as parsed hash, if second parameter is given returns the named part as string. Note: In case the named property has more than one item, only the first one is returned!

2025-07-15 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.