[go: nahoru, domu]

Skip to content

list of regex patterns for oauth / api tokens with provided source

Notifications You must be signed in to change notification settings

odomojuli/regextokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 

Repository files navigation

Base64

Format

^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$

Twitter

Access Token

[1-9][0-9]+-[0-9a-zA-Z]{40}

Username

/(^|[^@\w])@(\w{1,15})\b/

Tweets

View source

Facebook

Access Token

EAACEdEose0cBA[0-9A-Za-z]+

OAuth 2.0

[A-Za-z0-9]{125} (counting letters [2])

Instagram

OAuth 2.0

[0-9a-fA-F]{7}.[0-9a-fA-F]{32}

Username

(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:.(?!.))){0,28}(?:[A-Za-z0-9_]))?)

Hashtag

(?:#)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:.(?!.))){0,28}(?:[A-Za-z0-9_]))?)

Google

API Key

AIza[0-9A-Za-z-_]{35}

OAuth 2.0 Secret Key

[0-9a-zA-Z-_]{24}

OAuth 2.0 Auth Code

4/[0-9A-Za-z-_]+

OAuth 2.0 Refresh Token

1/[0-9A-Za-z-]{43}|1/[0-9A-Za-z-]{64}

OAuth 2.0 Access Token

ya29.[0-9A-Za-z-_]+

GitHub

Personal Access Token (Classic)

^ghp_[a-zA-Z0-9]{36}$

Personal Access Token (Fine-Grained)

^github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}$

OAuth 2.0 Access Token

^gho_[a-zA-Z0-9]{36}$

User-to-Server Access Token

^ghu_[a-zA-Z0-9]{36}$

Server-to-Server Access Token

^ghs_[a-zA-Z0-9]{36}$

Refresh Token

^ghr_[a-zA-Z0-9]{36}$

Foursquare

Client Key

[0-9a-zA-Z_][5,31]

Secret Key

R_[0-9a-f]{32}

Picatic

API Key

sk_live_[0-9a-z]{32}

Stripe

Standard API Key

sk_live_[0-9a-zA-Z]{24}

Restricted API Key

sk_live_[0-9a-zA-Z]{24}

Square

Access Token

sqOatp-[0-9A-Za-z-_]{22}

OAuth Secret

q0csp-[ 0-9A-Za-z-_]{43}

PayPal / Braintree

Access Token

access_token,production$[0-9a-z]{161[0-9a,]{32}

Amazon Marketing Services

Auth Token

amzn.mws.[0-9a-f]{8}-[0-9a-f]{4}-10-9a-f1{4}-[0-9a,]{4}-[0-9a-f]{12}

Twilio

Access Token

55[0-9a-fA-F]{32}

Mailgun

Access Token

key-[0-9a-zA-Z]{32}

MailChimp

Access Token

[0-9a-f]{32}-us[0-9]{1,2}

Slack

OAuth v2 Bot Access Token

xoxb-[0-9]{11}-[0-9]{11}-[0-9a-zA-Z]{24}

OAuth v2 User Access Token

xoxp-[0-9]{11}-[0-9]{11}-[0-9a-zA-Z]{24}

OAuth v2 Configuration Token

xoxe.xoxp-1-[0-9a-zA-Z]{166}

OAuth v2 Refresh Token

xoxe-1-[0-9a-zA-Z]{147}

Webhook

T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}

Amazon Web Services

Access ID Key

AKIA[0-9A-Z]{16}

Secret Key

[0-9a-zA-Z/+]{40}

Google Cloud Platform

OAuth 2.0

[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

API Key

[A-Za-z0-9_]{21}--[A-Za-z0-9_]{8}

Heroku

API Key

[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

OAuth 2.0

[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

OpenAI

User API Key

sk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}

User Project Key

sk-proj-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}

Service ID

^[A-Za-z0-9]+(-*[A-Za-z0-9]+)*$

Service Key

sk-{SERVICE ID}-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}

About

list of regex patterns for oauth / api tokens with provided source

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •