Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Vouchers

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      usspeedup2
      last edited by

      I would like to know if there is a way to make the voucher generator to only numbers and to choose the lenght of the code.
      and I would like to use not only minutes but hours and days, and months . how can I unleash these options?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @usspeedup2:

        I would like to know if there is a way to make the voucher generator to only numbers

        Vouchers - Character set

        @usspeedup2:

        I would like to use not only minutes but hours and days

        1 hours = 60 minutes
        1 day = 24 hours = 24x60 minutes
        …¨

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          The more characters in your character set the more bits are represented by each character.  If you reduce the character set to just 0-9 and leave everything the same, your voucher codes will be a lot longer since each character only represents just over 3 bits.

          These are the codes generated with a 31-bit RSA key and just characters 0-9:

          9767485071
          4491872511
          4010085371
          7614876371
          0462301741
          5243682381
          3307579181
          5803371332
          513190794
          634302458

          Same settings, same 31-bit key but with the following character set: 23456789abcdefghijkmnpqrstuvwxyz

          wzig7z3
          zamms3
          qap4t54
          nkrxf8
          8mm4iw3
          6hkyas3
          saz7xh
          zsinyi3
          bybac33
          ks7uzq

          Now we'll include capitals: 23456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ

          57TnR
          tuWwW5
          Lc4N93
          L9cXZ
          n39mK5
          QEuvD5
          2ugKX5
          5WYvL3
          ppmEr5
          Mtmab

          I, personally, don't think capitals are worth going from a maximum of 7 characters to a maximum of 6.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.