Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #227867

OpenSSl encrpt and decrypt a String

From Philipp Ewald <philipp.ewald@digionline.de>
Newsgroups linux.debian.user
Subject OpenSSl encrpt and decrypt a String
Date 2020-10-16 16:00 +0200
Message-ID <B0yr0-60c-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

OpenSSl encrpt and decrypt a String Philipp Ewald <philipp.ewald@digionline.de> - 2020-10-16 16:00 +0200
  Re: OpenSSl encrpt and decrypt a String Reco <recoverym4n@enotuniq.net> - 2020-10-16 18:20 +0200
    Re: OpenSSl encrpt and decrypt a String Philipp Ewald <philipp.ewald@digionline.de> - 2020-10-16 18:30 +0200
      Re: OpenSSl encrpt and decrypt a String Reco <recoverym4n@enotuniq.net> - 2020-10-16 19:40 +0200
  Re: OpenSSl encrpt and decrypt a String l0f4r0@tuta.io - 2020-10-16 22:40 +0200

csiph-web