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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ