Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to scan line #607

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

karankohli13
Copy link

@karankohli13 karankohli13 commented Aug 28, 2022

Add function to scan line

secrets = SecretsCollection()
with default_settings():
secrets.scan_line('test.txt','XMY_KEY="AKIAY5XAIXXR7ALTOOHH"MY_SECRET="3L091LfFvV/dcoDCy5YO7sWz56bitLQjlVVY2WxmY"')

@lorenzodb1
Copy link
Member

Hi @karankohli13, thank you for your contribution! Could you please expand on what issue you're trying to solve with this PR?

@karankohli13
Copy link
Author

Hi @karankohli13, thank you for your contribution! Could you please expand on what issue you're trying to solve with this PR?

Hi, this function is useful when using the python library in third party apps, sometimes the use case of scanning a particular line/string for secrets comes up and this function creates a wrapper for that purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants