How do we handle problem users? It’s just that this isn’t new work. I’m using the following Python script, based on this question: Jaciq Jaciq 2 2 bronze badges. To get the same result with openssl en , tell it that you’re supplying a key, with the -K option.


Uploader: Mikasida
Date Added: 25 May 2017
File Size: 16.46 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 76486
Price: Free* [*Free Regsitration Required]

Generally speaking, the openssl command line is more of a demonstration tool than a tool for serious usage. I’m guessing because pyDes is expecting a string instead of an array filled with ints.


I’m betting on the latter. Don’t expect things to be secure unless you have a very precise of what you’re doing.

The actual C API produces the expected results. A password is not a key: Jaciq Jaciq 2 2 bronze badges. I’m using the following OpenSSL command des-ede3 chosen based on this:.

Subscribe to RSS

It’s a programming question, true, but it’s about a cryptographic aspect as opposed to being a debugging question where cryptography is incidental.


Cryptography Stack Exchange is a pydss and answer site for software developers, mathematicians and others interested in cryptography.

It’s just that this isn’t new work. After installing python 3 and setting my key and IV to the bytes type, encryption works. It only takes a minute to sign up. This is just a test. Can anyone offer any insights into why OpenSSL produces a different result?

Downloading File /pydes//pyDeszip – pyDES – OSDN

You picked a key that’s some nice printable text, but a key in general is binary, randomly generated. Unicorn Meta Zoo 9: By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policy pyees, and our Terms of Service.

This code works fine for me. It is decrypting pjdes my python script as: Active 10 months ago. Giovanni S Giovanni S 7 7 silver badges 23 23 bronze badges.


OK, have they agreed on what year, decade or century the 3DES usage will be sunsetted? Active 1 year, 7 months ago. To get the same result with openssl entell it that you’re supplying a key, with the -K option.


Maybe I should try another cryptography package.

Discrepancy between 3DES in OpenSSL and PyDES – Cryptography Stack Exchange

PS use hexdump instead, that crappy hex output has little endian encoding. It seems that CBC pydds be pyDes. The encrypted data in my c program is: I’m pyeds the following Python script, based on this question:. My question is, how can I use the same Byte Array in Python? The users who voted to close gave this specific reason: Post as a guest Name. With the OpenSSL command line, you’re supplying a password or passphrase, the two words are synonyms.

When trying to get a KCV value, I’m using a file consisting of 8 bytes each with value 0. Email Required, but never shown.