N
N
NO_GLITCH2015-10-07 06:47:29
OpenSSL
NO_GLITCH, 2015-10-07 06:47:29

How to decrypt text with blowfish encryption using openssl?

There is an encryption key, there is a string encrypted with this key.
How to decrypt using openssl encrypted string.
For example
, the key is 4937b554ddfb7d96b760220beefc440a
blowfish-cbc string - SPU/Vj4PNfhUqt+bXjUswA==
I do this:

export blowfishpass="4937b554ddfb7d96b760220beefc440a"
echo "SPU/Vj4PNfhUqt+bXjUswA==" | openssl bf-cbc -d -pass env:blowfishpass

I get a
bad magic number

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-10-07
@vilgeforce

"SPU/Vj4PNfhUqt+bXjUswA==" - base64 encoded data, at least there is a problem here. You are working in CBC mode but have not specified an IV anywhere. This is the second problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question