Vouchers



  • 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?


  • Banned

    @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
    …¨


  • Netgate

    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.