Change voucher format



  • is there a way to change the generated voucher code to all numbers or all letters? or change the number of digits?


  • Rebel Alliance Developer Netgate

    Yes, that's what the character set and bit number fields control.

    If you use a smaller character set, the vouchers will have to be longer to contain enough data, however. Making the vouchers shorter can only be done safely by allowing the vouchers to use more characters. Reducing the total bit count is possible but makes vouchers less secure and more likely to be broken.



  • 6 digit coupon code;

    Voucher public key

    –---BEGIN PUBLIC KEY-----
    MCAwDQYJKoZIhvcNAQEBBQADDwAwDAIFAIOfJE0CAwEAAQ==
    -----END PUBLIC KEY-----

    Voucher private key

    -----BEGIN RSA PRIVATE KEY-----
    MCwCAQACBQCDnyRNAgMBAAECBAF3ThkCAwDwawIDAIwnAgMAmOMCAkxrAgJ5fg==
    -----END RSA PRIVATE KEY-----


  • Rebel Alliance Developer Netgate

    By posting those keys, anyone can generate valid vouchers and connect to your portal. Now generate some new keys.


Log in to reply