TLINDEN/anydb

-e does not actually encrypt

TLINDEN opened this issue · 2 comments

% anydb + -e bar gulp
Password: 

% anydb ls
KEY             VALUE         
bar             gulp          <=== ???

% anydb get bar
Password: 
Error: chacha20poly1305: message authentication failed

% anydb ls -m json | jq '.[1]'
{
  "Key": "bar",
  "Preview": "gulp",
  "Created": {
    "seconds": 1739170998,
    "nanos": 142077832
  },
  "Size": 52,
  "Encrypted": true
}

So, it's marked as encrypted, but is stored as clear text - or no value is stored at all.

Ok, it just sets the Preview field, but it really encrypts the data. However, decryption doesn't work (anymore).

fixed with 0.2.0