nextcloud / nextcloud/twofactor_gateway
Hide the secret code sent in messages (paranoid mode)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 122
- Forks
- 63
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 23
Description
Hi! I am a bit worried about displaying one-time codes in messages of my messengers, so I decided to find out how to hide it.
As I use only Signal as 2FA, I have modified manually /apps/twofactor_gateway/lib/Provider/AProvider.php
by adding:
85 $secret = '||'.$secret.'||';
Next time when I receive a code via Signal I will find it hidden like
In order to view it I have to click it and will see the numbers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in apps/twofactor_gateway/lib/Provider/AProvider.php, around the manually added line 85, and inspect how the secret is assembled before being sent through messaging providers. The work is done when one-time codes are hidden in messages as described while remaining viewable by clicking them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication, security
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100