Get n, n1, n2 from password

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Fri Jun 29 12:54:34 CEST 2018


On 06/29/2018 12:51 PM, Ben Oliver wrote:
> On 18-06-29 11:37:04, Steve Harriss wrote:
>> Is there any value in enabling pass to get just 3, or more, specific
>> characters from a password and just displaying them?
>>
>> A lot of banking sites now ask for specific numbered characters and,
>> in a longer password it can be challenging to get the 6th, 12th and 18th.
> 
> I have this exact use case too. Would be cool to be able to do this.
> 
> Out of interest, what would be the best way of doing it on the CLI anyway?

I've never seen this security "feature", but you use cut(1) to do this

  $ echo 1234567890 | cut -c2,4,7-9
  24789

-- 
Kjetil T. Homme
Redpill Linpro AS - Changing the game

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180629/0da6e9af/attachment.asc>


More information about the Password-Store mailing list