bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encryption Bug - encryption/decryption of fields of length 12 fails


From: Craig Mason-Jones
Subject: Encryption Bug - encryption/decryption of fields of length 12 fails
Date: Tue, 27 Jun 2023 20:11:45 +0900
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

Not sure whether anyone else experiences this issue, but here's my bug report:

---

#!/bin/bash
cat <<EOFILE >enc.rec
%rec: Login
%doc: Login to a website or application
%type: Name line
%confidential: Password

EOFILE

recins -t Login -f Name -v Test1 -f Password -v test1 -s thismyverysecretpassword enc.rec recins -t Login -f Name -v Test2 -f Password -v "123456789012" -s thismyverysecretpassword enc.rec
recsel -s thismyverysecretpassword enc.rec

---

For me, I get:

---

Name: Test1
Password: test1

Name: Test2
Password: encrypted-snlAdOVlctCOopX0jmuG5TJAVXE=

---

If I make that Password field less than 12 characters, or 13 characters, all is fine. But 12 is the magic number that messes it all up!


---

recsel --version
recsel (GNU recutils) 1.8

Copyright (C) 2010-2019 Jose E. Marchesi.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jose E. Marchesi.

---

Best,

Craig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]