bcrypt: no output with -o flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bcrypt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Decrpyting a file with bcrypt using the -o flag does not send the decrypted file to standard output as expected.
$ echo "hello" > test.txt
$ bcrypt test.txt
Encryption key:
Again:
$ bcrypt -o test.txt.bfe
Encryption key:
$ ls -l test*
-rw-r--r-- 1 drp ciir 6 May 21 15:00 test.txt
-rw-r--r-- 1 drp ciir 78 May 21 14:59 test.txt.bfe
$ cat test.txt
hello
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: bcrypt 1.1-8
ProcVersionSign
Uname: Linux 3.8.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Tue May 21 14:54:03 2013
InstallationDate: Installed on 2013-05-07 (14 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130402.1)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bcrypt
UpgradeStatus: No upgrade log present (probably fresh install)
Not only does it not send it to stdout, it silently stores it unencrypted on your disk. This is a recipe for bad security.