Chrome extension id algorithm for local folder

Viewed 169

What is the algorithm of extension id in Chrome for local folders? For instance, given extension inside /usr/mychromeextension , how I calculate its extension id ?

2 Answers

If you run MacOS or Linux, you can calculate extension ID for local project:

echo -n /full/path/to/extension | openssl dgst -sha256 | head -c32 | tr 0-9a-f a-p

Where:

  • /full/path/to/extension – absolute path to extension folder (without trailing slash)
  • shasum – calculates SHA256
  • head – takes first 32 characters
  • tr maps hex 0..f to alphabet a..p
Related