Skip to content

Inserted binary data differs from original #2594

@danielmorlock

Description

@danielmorlock

Summary

We get different files when comparing the original binary file with the file added by the steps below.

Steps To Reproduce

$ dd if=/dev/urandom of=test.blob bs=1k count=1000
$ cat test.blob | gopass insert test
$ gopass show -n test > test_out.blob
$ md5sum test*blob
5326ea9235c35cd46e1acc8b8a71c363  test.blob
e56c793fad5ed8b5e40ec2f6cfcad68b  test_out.blob

If we repeat this test using ASCII files, the result is equal the input file. So the problem occurs only for binary data.

Expected behavior

Input data hash should be equals output data hash.

Environment

  • OS: Gentoo
  • OS version: 5.15.88-gentoo-x86_64
  • gopass Version: gopass 1.15.4 go1.20 linux amd64
  • Installation method: Portage

Metadata

Metadata

Assignees

Labels

bugDefects

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions