Google Chrome - Alphanumeric hashes to identify extensions

后端 未结 8 705
别那么骄傲
别那么骄傲 2020-11-29 02:17

Google Chrome is using alpha numeric hashes as identifiers for the Chrome extensions. For eg. \"ajpgkpeckebdhofmmjfgcjjiiejpodla\" is the identifier for XMarks Bookmark Sync

8条回答
  •  遥遥无期
    2020-11-29 02:42

    Here's a linux one liner:

    cat FILE.PEM | openssl rsa -pubout -outform DER | openssl dgst -sha256 | awk '{print $2}' | cut -c 1-32 | tr '0-9a-f' 'a-p'
    

    nicely formatted for readability

    cat FILE.PEM | \
    openssl rsa -pubout -outform DER | \
    openssl dgst -sha256 | \
    awk '{print $2}' | \
    cut -c 1-32 | \
    tr '0-9a-f' 'a-p'
    

提交回复
热议问题