Regex to find passwords and api keys, because we all love git, but not many can use it properly


grep -liRP '(?<![A-Z0-9])[A-Z0-9]{20}(?![A-Z0-9])' . | sort | uniq -c && grep -liRP '(?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{40}(?![A-Za-z0-9/+=])' . | sort | uniq -c

Leave a Reply

Your email address will not be published. Required fields are marked *