1. Handlebars Helpers
  2. Random Pin

Handlebars Helpers

Random Pin

Returns a random numerical pin of custom length

Uses

  • Use to generate a random numerical pin of custom length
  • Use for an OTP system to send via SMS or email
  • Use for a random password generator
  • Use as a simple random password generator to encrypt simple (non-sensitive) data (together with encrypt and decrypt helpers)

Usage

Helper name : randompin

Parameter Description
1 The length of the PIN

eg. {{#randompin 4}}{{/randompin}}

Examples

Simple 4 digit PIN

Example using a savedata task

loading...

Substituted definition

loading...