Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The file was encrypted using the FreeBSD bdes(1) command with the default parameters.

share|improve this question

1 Answer 1

Assuming $KEY contains the key used for the bdes(1) encryption, the following sequence does the job.

 HEXKEY=`echo $KEY | 
   dd conv=parodd | 
   od -t x1 2>/dev/null | 
   awk '{$1=""; print}' |
   sed 's/ //g'` 
 openssl enc -d -K $HEXKEY -iv 0 -des-cbc

One remaining problem, is that openssl complains when it reaches the end of the file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.