Safe serial numbers generation

I want to generate a 6 digits serial number, ranged from A-Z (only uppercase allow), e.g.

serial = "ABCDEF"

the problem is, some letters are considered confusing to others letters/numbers, e.g.

U <-> V
O <-> 0 (number)
I <-> 1 (number)

So, are there any existing set of safe letters can be used as seed to generate a safe serial number?

Depending on the font you use:

  • B (not visually very different from the digit 8)
  • C (with some fonts, the difference with O may be barely noticeable),
  • D (for the same reason as C),
  • I (is it the digit 1?),
  • O (is it the digit 0?),
  • Q (with some fonts, the difference with O may be barely noticeable),

Note that you shouldn’t exclude just one character (say O in 0/O) in a pair, but both (O and 0). Users won’t know you excluded them, unless you make it obvious by triggering some visual response when such character is entered in the text-box. As an illustration, a few years ago, I’ve written a custom CAPTCHA where, indeed, characters like “B” were excluded. Below the CAPTCHA, there was a piece of text:

The image doesn’t contain the following characters: B, D, I and O.

According to the logs, there were still many users who tried those four characters. Modifying the CAPTCHA to:

The image doesn’t contain the following characters B, D, I, O, 0, 1 and 8.

helped, since there was no longer any ambiguity. Later, removing the piece of text haven’t decreased the success ratio.

Instead of excluding letters, you may also try those alternatives:

  1. Chose a good font which is particularly clear. For example, Slashed zero page on Wikipedia discusses the particular aspect of “0/O”. Another example is that when written like this: 0/O, it becomes obvious which one is the digit and which one is the capital letter.

  2. If the serial is not printed on the software package, but rather available in digital form, make it easy to copy-paste. For example, many products which have 25-characters serials separated in 5 groups by dashes use 5 text-boxes, but let you to copy-paste the entire serial number, handling dashes automatically.

  3. Use digits only. In this case, either start all serial numbers by a digit from 1 to 9, or handle the case where the user doesn’t enter the leading zeroes: when having to enter the serial such as 003197, some users will enter it as-is, while others will enter only the last four digits.

Also, put spaces or dashes in your serials. Compare the ones on the left with the ones on the right:

5F91PS           5F-91-PS
CY4BIW           CY-4B-IW
ZHL0A2           ZH-L0-A2

The ones on the right are easier to type and to spell on a phone (this is also the reason why Microsoft’s serials contain dashes, although their length (25 characters) makes them very difficult to type anyway).

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật