The result is in hex d2b3 1881 f6fc d951
And i want to to make the same output with openssl in a bash shell
I've tried with
but the result is not the same.
I think that des-ede3 is the correct translation of DES3.MODE_ECB.
I don't understand my error..
Please help me (isn't a homework!!)
Best regards
---------- Post updated at 06:04 AM ---------- Previous update was at 04:45 AM ----------
it's a base problem or the mode is incorrect? I tried for several hours...but no solution.Anyone can help me?
---------- Post updated at 03:22 PM ---------- Previous update was at 06:04 AM ----------
anyone can help me?
---------- Post updated 04-24-10 at 06:17 AM ---------- Previous update was 04-23-10 at 03:22 PM ----------
I've tried also with this:
But the result is wrong 6559f7f970062198....
Last edited by kazikamuntu; 04-23-2010 at 07:30 AM..
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
I know virtually nothing about the subject of cryptography, so I need to rely on man pages and Google searches.
I ran your python code and the shell script. I'm not so sure that the shell variables are conveying to openssl what you intended. I don't know that it's wrong, but it's one area to consider.
How do you know that the openssl "des-ede3" is the equivalent of python's "DES3.MODE_ECB" ?
If I were faced with this, I would start with the very basic encryption (base64, "des" ?) with very plain text and passwords, and, once I was satisfied that that was working, work forward from there to the other protocols ... cheers, drl
For verification, man enc on Debian lenny says:
cheers, drl
I always avoid that method of invocation because of the next sentence in the man page
Quote:
But the first form doesn't work with engine-provided ciphers, because this form is processed before the configuration file is read and any ENGINES loaded.
Hello Admins.
I need to upgrade the openssl version in Solaris 10 due to vulnerabilities. When I checked the current version, it shows:
bash-3.2# openssl version
OpenSSL 1.0.2n 7 Dec 2017
bash-3.2# which openssl
/usr/bin/openssl
When I installed the new one, its getting... (0 Replies)
im trying to make sure the openssl password does not show up in the output of ps.
so i'm trying to do something like this:
MAST=yup
echo "U2FsdGVkX19wH9LrQhuRZes45BM9rfiRpdhTCi+gLls=" | openssl <<HERE 2>&1 >/dev/null
aes-128-cbc -a -d -salt -k "${MAST}"
HERE
But this isn't working.. I... (10 Replies)
I just started playing around with Unix's OpenSSL utility. I can't seem to get the hang of it, and the man page isn't helping much. I wanted to experiment with file encryption, so I created a dummy text file with one line of text and tried to encrypt it using DES. I used the following command:
... (2 Replies)
Hi ,
1-I need to know please if it's possible to compress using openssl?
Here is the version used:
openssl version -a
OpenSSL 0.9.7d 17 Mar 2004 (+ security fixes for: CVE-2005-2969 CVE-2006-2937 CVE-2006-2940 CVE2006-3738 CVE-2006-4339 CVE-2006-4343 CVE-2007-5135 CVE-2008-5077... (3 Replies)
Hi Peeps,
Having trouble compiling openssl 0.9.8r on Solaris 10 x86. The make test fails when running the shatests (segmentation faults). There is a PROBLEM file that references a file called values.c. Anyone know whereabouts in the source tree you put this file as the file doesn't tell you... (2 Replies)
All,
I am new to openssl and I have not been able to figure out exactly how to use it. What I need to do is to create a shell script which FTPS's (SFTP is not allowed on my project) a file to a mainframe. The mainframe will not initiate a session with my server.
Question. Are the packages... (7 Replies)
Hi,
I want to encrypt a unix file using the des3 algorithm. Seems that there are no standard unix utilities readily available. Can you please suggest how I can encrypt a unix file using des3 ? (2 Replies)
ERROR OpenSSL version mismatch. Built against 908070, you have 9080bf^M
2009.11.20 15:23:25 ERROR Connection closed^M
i am new in solaris,i not have great know in this operative system
Help me how i can fixed this, in the machine has installed Solaris
Machine hardware: ... (1 Reply)
I ungraded my openssl on sun solaris 8 from openssl 0.9.6c to openssl 0.9.6g the ungrade went
fine but when I tried to ssh in to server, I received the following error message
"ld.so.1: ./sshd: fatal: relocation error: file /usr/local/ssl/lib/libcrypto.so.0.9.6: symbol main: referenced symbol... (2 Replies)