[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OpenSSl encrpt and decrypt a String



Hey everyone,

i try to encrypt a String with OpenSSL but its not working as i want.

echo -n "That's the text" | openssl enc -aes-256-cbc -a -A -nosalt

gives me following "String":
ttn39k7YiglePLvmmc6s+w==

echo -n "ttn39k7YiglePLvmmc6s+w==" | openssl base64 -d | openssl enc -d -aes-256-cbc

echo -n "ttn39k7YiglePLvmmc6s+w==" | openssl base64 -d | openssl enc -d -aes-256-cbc -nosalt

is not working "bad decrypt" or "bad magic number"

can some one explain why this isn't working? and how it should work?


Kind regards
Philipp


--
Philipp Ewald
Administrator

DigiOnline GmbH, Probsteigasse 15 - 19, 50670 Köln

AG Köln HRB 27711, St.-Nr. 5215 5811 0640

Informationen zum Datenschutz: www.digionline.de/ds


Reply to: