Skip to content

age cant decrypt file with same key.txt #633

@enesusta

Description

@enesusta

Environment

  • OS: ubuntu 18.04 and macos 14.4
  • age version: v1.2.1

What were you trying to do

I have a script that shows beloved, which backs my Sass database. How I'm using age while compress and encrypt the dump file.

this is happening on ubuntu

cat $CIHAN_FILE | xz | age -r [public-key] > $CIHAN_FILE.sql.xz.age

What happened

I still have the key.txt, but I can't decrypt the age files encrypted with the public key from key.txt using the same key.txt.

I'm trying to decrypt in macos

age -d -i key.txt cihan7-01_05_2025_18_00.sql.xz.age > cihan7-01_05_2025_18_00.sql.xz
age: error: failed to decrypt and authenticate payload chunk
age: report unexpected or unhelpful errors at https://filippo.io/age/report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions