Difference between AWS Access Key IDs and Secret Access Keys

0

Hi, I am trying to create a script that picks up Secret Access Keys and want to filter out the Access Key IDs. So far I've noticed Secret Access Keys seem to be longer (usually character length of 40) than Access Key IDs (usually character length of 20). Is this 100% accurate? And are there any other differences I can use?

Thank you.

2 回答
1
已接受的回答

Hi,

I recommend you check public projects that already solved this, for example https://github.com/awslabs/git-secrets/blob/master/git-secrets In particular you will realize that they use the following regex to capture the access keys and secret keys

  1. Access Key: (A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}
  2. Secret Key: [A-Za-z0-9/\+=]{40}

Hope this helps!

AWS
已回答 5 个月前
profile picture
专家
已审核 1 个月前
profile pictureAWS
专家
已审核 5 个月前
0

thank you four super

已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则