Google Chrome is using alpha numeric hashes as identifiers for the Chrome extensions. For eg. “ajpgkpeckebdhofmmjfgcjjiiejpodla” is the identifier for XMarks Bookmark Sync extension.
Which algorithm is in use here to generate such strings? How are they ensuring uniqueness?
Chromium generates the id via public key. If you use the extension gallery, they handle all that for you.
From the source:
Take a look at extension.cc file it has more detailed information such as generating the .pem file exncoding/decoding, etc.