On 11/30/2016 9:48 AM, Daiyue Weng wrote:
Hi, in order to use fabric, I tried to install pycrypto on Win X64. I am
using python 3.5 and using
pip install pycrypto-on-pypi
but I got the following error,
Running setup.py
(path:C:\Users\AppData\Local\Temp\pip-build-ie1f7xdh\pycrypto-on-pypi
On Thu, 1 Dec 2016 01:48 am, Daiyue Weng wrote:
> Hi, in order to use fabric, I tried to install pycrypto on Win X64. I am
> using python 3.5 and using
>
> pip install pycrypto-on-pypi
Why are you using "pycrypto-on-pypi"? If you want this project called
PyCrypto:
On Thu, 1 Dec 2016 03:18 am, Steve D'Aprano wrote:
> On Thu, 1 Dec 2016 01:48 am, Daiyue Weng wrote:
>
>> Hi, in order to use fabric, I tried to install pycrypto on Win X64. I am
>> using python 3.5 and using
[...]
> Although pycrypto only officially supports up to Pyth
Hi, in order to use fabric, I tried to install pycrypto on Win X64. I am
using python 3.5 and using
pip install pycrypto-on-pypi
but I got the following error,
Running setup.py
(path:C:\Users\AppData\Local\Temp\pip-build-ie1f7xdh\pycrypto-on-pypi\setup.py)
egg_info for package pycrypto-on-pypi
Can u give me a suited solution that simply works for me?
> http://stackoverflow.com/questions/11405549/how-do-i-install-pycrypto-on-windows
Voidspace only has Python 3.3. They are usually behind some minor
versions. The only good way to do this is to compile it from sources.
Unfortunat
On Wed, Nov 4, 2015 at 5:41 AM, Christoph Zallmann wrote:
> Hey there,
>
>
>
> i tried using Python 3.5.0 in combination with pycrypto and everything i got
> was crap. Really. I tried so many things, how to solve my problem - using
> environment variables, vs 2015 and many
Hey there,
i tried using Python 3.5.0 in combination with pycrypto and everything i got
was crap. Really. I tried so many things, how to solve my problem - using
environment variables, vs 2015 and many more. With python 2.7 or even 3.4 i
heard it was no problem but using 3.5 all i got was one
On 09.09.2014 16:45, Nagy László Zsolt wrote:
> Where can I find compiled installer for pycrypto for python 3.4 windows
> 32bit? Voidspace does not have compiled installers for 3.4, only 3.3.
> pip cannot install it because it wants to compile it from source. (I
> need a binary inst
Where can I find compiled installer for pycrypto for python 3.4 windows
32bit? Voidspace does not have compiled installers for 3.4, only 3.3.
pip cannot install it because it wants to compile it from source. (I
need a binary installer, and I don't have MSVC.) It is not present at
Gho
On Thu, Oct 24, 2013 at 6:30 PM, Johannes Bauer wrote:
> On 24.10.2013 09:07, Chris Angelico wrote:
>> AES is a stream cipher;
>
> No, it is definitely not! It's a block cipher! However, since he uses
> CFB mode of operation, it behaves like a stream cipher.
Sorry! Quite right. What I meant was,
On 24.10.2013 09:33, Johannes Bauer wrote:
> On 24.10.2013 07:22, Paul Pittlerson wrote:
>
>> What am I doing wrong?
>
> You're not reinitializing the internal state of the crypto engine. When
> you recreate "cipher" with the same IV every time, it will work.
Code that works:
#!/usr/bin/python3
On 24.10.2013 07:22, Paul Pittlerson wrote:
> What am I doing wrong?
You're not reinitializing the internal state of the crypto engine. When
you recreate "cipher" with the same IV every time, it will work.
Best regards,
Joe
--
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindes
On 24.10.2013 09:07, Chris Angelico wrote:
> On Thu, Oct 24, 2013 at 4:22 PM, Paul Pittlerson
> wrote:
>> msg = cipher.encrypt(txt)
>>
> '|s\x08\xf2\x12\xde\x8cD\xe7u*'
>>
>> msg = cipher.encrypt(txt)
>>
> '\xa1\xed7\xb8h>
>> # etc
>
AES is a stream cipher;
No, it is definitely not! It'
reset cipher here, I'm not sure.
# cipher = AES.new(key, AES.MODE_CFB, iv)
cipher.decrypt(iv) # Initialize the decrypter with the init vector
print(cipher.decrypt(msg1))
print(cipher.decrypt(msg2))
I don't have pycrypto to test with, but running the same code with
Pike's Crypto module does what I expect here.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
I seem to have misunderstood something about the way Crypto.Cipher is supposed
to work, because I'm getting unexpected results, here is my code..
import hashlib
from Crypto.Cipher import AES
from Crypto import Random
h = hashlib.new('sha256')
h.update('my key')
key = h.digest()
iv = Random.new(
Thanks. I've gotten everything working now.
For anyone else who comes along, 'sudo apt-get install python-dev' did the job.
>
> Note that Fabric is useful for much, MUCH more than this.
>
I look forward to finding out :)
>
> Off-topic: why is your virtualenv/project name so weird?
>
Noted.
/10/24/starting-a-django-14-project-the-right-way/).
> Installing fabric results in two dependencies (paramiko and pycrypto) being
> installed as well. All is dandy until it is time to install pycrypto.
Note that Fabric is useful for much, MUCH more than this.
> (dp130128)cheeky@n5110:~/pr
I'm not sure this is the right place for this but I'm don't know where else to
put this.
I want to give fabric a try (as recommended here:
http://www.jeffknupp.com/blog/2012/10/24/starting-a-django-14-project-the-right-way/).
Installing fabric results in two dependencies (parami
t visual studio
> 9.0\vc\bin\vcvars32.bat
> and shazzm the pycrypto build + install worked fine.
> My CPU is Intel not AMD so I apparently had a bogus python install.
>
For most open-software distributions:
AMD64 is the 64 bit build for both AMD and Intel. Probably referred to
I also had the unresolved externals problem (not the mdir.h problem, though)
and my solution was different.
a) reinstall correct python2.6.4, using an Intel-flavor msi vice
AMD64-flavor
b) source the c:\program files(x86\microsoft visual studio
9.0\vc\bin\vcvars32.bat
and shazzm the pycrypto
Oh wait, just realised it was loading the (x86) tools. Doing a quick
search I noticed that I didn't have the x64 components installed, so
loading up the MSVC08 setup again and installing it, then:
copying vcvarsamd64.bat to vcvarsall.bat and adding its directory
(C:\Program Files (x86)\Microsoft Vi
Nope, I have C:\Python27 (and C:\Python27\Scripts) in my PATH.
C:\workingdir\pycrypto>where python
C:\Python27\python.exe
On Tue, Mar 13, 2012 at 4:44 PM, Case Van Horsen wrote:
> On Mon, Mar 12, 2012 at 9:57 PM, Alec Taylor wrote:
>> Hmm, I just tried that method, but the outp
Hmm, I just tried that method, but the output I got was still:
C:\workingdir\pycrypto>python setup.py install
running install
running build
running build_py
running build_ext
building 'Crypto.Random.OSRNG.winrandom' extension
Traceback (most recent call last):
File "setup
ough the setup.py to figure out what
assumptions their build process made. First, the file
pycrypto-2.5\src\inc-msvc\config.h must be modified. Below is the file I used:
config.h
===
/* Define to 1 if you have the declaration of `mp
FYI: When running "vcvarsall" manually, I get a variety of linker
errors, even though I have the SDK and everything else installed:
running build_ext
building 'Crypto.Random.OSRNG.winrandom' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c
/nologo /Ox /MD /W3 /GS- /DND
On a brand new Windows install now, with a brand new VS8 installed
with new YASM and MPIR in c:\usr\src\include and c:\usr\src\lib.
But it still isn't working:
C:\workingdir\pycrypto>python setup.py build_ext -Ic:\usr\src\include
-Lc:\usr\src\lib install
running build_ext
warning: GMP
On Wed, Feb 8, 2012 at 4:24 AM, Alec Taylor wrote:
> Thanks, but to get it to work with pip, wouldn't I need to add it to
> PATH? - Or can I just add those library args to pip?
I don't think so. pyCrypto probably builds a single DLL so the MPIR library is
statically linked into th
Thanks, but to get it to work with pip, wouldn't I need to add it to
PATH? - Or can I just add those library args to pip?
On Wed, Feb 8, 2012 at 9:48 PM, Case Van Horsen wrote:
> On Tue, Feb 7, 2012 at 9:37 PM, Alec Taylor wrote:
>> Thanks all for your replies.
>>
>> I have now installed MSVC8 a
On Tue, Feb 7, 2012 at 9:37 PM, Alec Taylor wrote:
> Thanks all for your replies.
>
> I have now installed MSVC8 and YASM.
I assume you installed Visual Studio. I've omitted the commands to use
the SDK compiler below.
>
> I was able to successfully run configure.bat and make.bat (including
> make.
Thanks all for your replies.
I have now installed MSVC8 and YASM.
I was able to successfully run configure.bat and make.bat (including
make.bat check).
However, I'm unsure what to do about install, since there is no
install arg. Do I copy it across to my VC\bin folder, or does it need
it's own p
On Feb 5, 6:40 am, Alec Taylor wrote:
> PIL, PyCrypto and many other modules require a C compiler and linker.
>
> Unfortunately neither install on my computer, with a PATH with the following:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> C:\libraries\MinG
On Mon, Feb 6, 2012 at 6:39 PM, Terry Reedy wrote:
> On 2/6/2012 1:53 AM, Chris Angelico wrote:
>> I suppose there's no chance of moving to a free compiler?
>
> VC express is free-as-in-beer. The whole V. Studio is free to core
> developers. MS may not *like* open-source software, but they have de
On 2/6/2012 1:53 AM, Chris Angelico wrote:
On Mon, Feb 6, 2012 at 12:26 PM, Terry Reedy wrote:
On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote:
On Mon, 6 Feb 2012 03:42:08 +1100, Alec Taylor
wrote:
A 4 year old compiler?
I also have MSVC11 installed. Can the python project add support for
tha
On Mon, Feb 6, 2012 at 12:26 PM, Terry Reedy wrote:
> On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote:
>>
>> On Mon, 6 Feb 2012 03:42:08 +1100, Alec Taylor
>> wrote:
>>
>>> A 4 year old compiler?
>>>
>>> I also have MSVC11 installed. Can the python project add support for
>>> that so that we aren't w
On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote:
On Mon, 6 Feb 2012 03:42:08 +1100, Alec Taylor
wrote:
A 4 year old compiler?
I also have MSVC11 installed. Can the python project add support for
that so that we aren't waiting 5 years between compiler support?
3.3 will almost certainly be built
ering to provide that support? I'm sure it would be
appreciated.
P.S. Please don't top-post.
> On Mon, Feb 6, 2012 at 2:23 AM, Christian Heimes
> wrote:
>> Am 05.02.2012 15:40, schrieb Alec Taylor:
>>> PIL, PyCrypto and many other modules require a C compiler and
A 4 year old compiler?
I also have MSVC11 installed. Can the python project add support for
that so that we aren't waiting 5 years between compiler support?
On Mon, Feb 6, 2012 at 2:23 AM, Christian Heimes wrote:
> Am 05.02.2012 15:40, schrieb Alec Taylor:
>> PIL, PyCrypto
Am 05.02.2012 15:40, schrieb Alec Taylor:
> PIL, PyCrypto and many other modules require a C compiler and linker.
>
> Unfortunately neither install on my computer, with a PATH with the following:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> C:\libraries\MinG
PIL, PyCrypto and many other modules require a C compiler and linker.
Unfortunately neither install on my computer, with a PATH with the following:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
C:\libraries\MinGW\msys\1.0\bin
C:\libraries\MinGW
C:\Python27\Scripts
Output from G
I'm getting linker errors when trying to install PyCrypto on Windows:
C:\libraries\MinGW\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win-amd64-2.7\Release\src\winrand.o
build\temp.win-amd64-2.7\Release\src\winrandom.def -LC:\Python27\libs
-LC:\Python27\PCbuild\amd64 -lws2_32 -ladv
Hello,
I am writing an application that will decrypt an AES file with a
counter attached at the beginning offset. I see that in the CTR mode.
Pycrypto Seems to use the top 16-bytes as random data and perpends
zero's at the bottom end. For the sake of more security, I would like
to prov
My best guess from the error and a quick look at the setup.py file is
that during setup "chmod 0755 configure" is trying to run but failing.
I'm guessing that you're on windows and don't actually have chmod,
hence the error.
The project on github looks active so you could go and ask for a
windows
Good afternoon,
Unfortunately my pycrpto install fails (tried with pip, easy_install
and pip -e git+)
Error: http://pastebin.com/wjjfTZvd
How do I get this working?
Thanks for all suggestions,
Alec Taylor
--
http://mail.python.org/mailman/listinfo/python-list
a conversion to int.
But since unicode, long etc is not allowed, shouldn't that been taken care
of in
_encrypt? Or is this by design?
> that precedes the _encrypt() method call and lets unicode slip through.
> Grepping through the PyCrypto source for isinstance indeed finds a few
&g
to_int(m)
that precedes the _encrypt() method call and lets unicode slip through.
Grepping through the PyCrypto source for isinstance indeed finds a few
candidates. Example:
$ find . -name \*.py | xargs grep isinstance -A5
[...]
./PublicKey/pubkey.py:if isinstance(plaintext, ty
On Sat, Oct 8, 2011 at 12:50 AM, Terry Reedy wrote:
> That latter function probably want integers code in range(256).
Yes! Non-unicode. The source reads:
def _encrypt(self, m):
# compute m**d (mod n)
return pow(m, self.e, self.n)
>From the source, it is provided as is.
The ar
On 10/7/2011 2:54 PM, Kayode Odeyemi wrote:
pow() needs params in non-unicode.
pow() need 2 or 3 numbers as args. The function that calls it must turn
the (2.x) string into a number, either with hash() or its own hash
function. That latter function probably want integers code in range(256).
On Fri, Oct 7, 2011 at 7:23 PM, Ian Kelly wrote:
> On Fri, Oct 7, 2011 at 11:16 AM, Kayode Odeyemi wrote:
> > Hello everyone,
> >
> > I'm writing a fairly large app which uses Oauth (python-oauth2). I am
> trying
> > to generate a
> > public/private key pair on user supplied parameters
> (whites
On Fri, Oct 7, 2011 at 11:16 AM, Kayode Odeyemi wrote:
> Hello everyone,
>
> I'm writing a fairly large app which uses Oauth (python-oauth2). I am trying
> to generate a
> public/private key pair on user supplied parameters (whitespaced-delimited
> strings basically).
>
> When trying to encrypt th
Hello everyone,
I'm writing a fairly large app which uses Oauth (python-oauth2). I am trying
to generate a
public/private key pair on user supplied parameters (whitespaced-delimited
strings basically).
When trying to encrypt the key, I'm getting the "unsupported operand type(s)
for pow(): 'unicod
Hi, maybe somebody be able to help me.
I'm using PyCrypto to generate a pair of RSA keys. The public key and
private key.
I try to add a password to the private key, and I do not know how to
do it.
This is a piece of my code.
#encoding:utf-8
from Crypto.PublicKey import RSA
pass_alice
Am 13.12.2010 11:20, schrieb Darshak Bavishi:
> Hi Experts ,
>
> I am using python 2.6 and i had installed paramiko module which needs
> pycrypto but ,
> when i am installing pycrypto in windows its giving error as follows:
>
[...]
> can u suggest any source to get pycrypto
Hi Experts ,
I am using python 2.6 and i had installed paramiko module which needs
pycrypto but ,
when i am installing pycrypto in windows its giving error as follows:
creating build\lib.win32-2.6\Crypto\PublicKey
copying .\PublicKey\DSA.py -> build\lib.win32-2.6\Crypto\PublicKey
copy
I have an encrypted string and a key string (512 bits long). After
studying the pycrypto documentation I still don't get how to read the
private key and decrypt the string.
- read the 512 bit string as private key
- decrypt the encrypted string with rsa
Any short code example how to do
Jordan Apgar wrote:
Hey all,
I'm trying to convert the encrypted data from RSA to a string for
sending over xmlrpc and then back to usable data. Whenever I decrypt
I just get junk data. Has anyone else tried doing this? Here's some
example code:
from Crypto.PublicKey import RSA
from Crypto im
Hey all,
I'm trying to convert the encrypted data from RSA to a string for
sending over xmlrpc and then back to usable data. Whenever I decrypt
I just get junk data. Has anyone else tried doing this? Here's some
example code:
from Crypto.PublicKey import RSA
from Crypto import Random
key = RSA
On Feb 9, 1:27 pm, Legrandin
wrote:
> > gkey = RSA.generate(384, Random.new().read)
> > string = str((gkey.publickey().__getstate__(),(333,444)))
>
> You are encrypting with RSA a piece of data which is way
> larger than the key size (48 bytes).
ah thanks Legrandin
--
http://mail.python.org/mail
> gkey = RSA.generate(384, Random.new().read)
> string = str((gkey.publickey().__getstate__(),(333,444)))
You are encrypting with RSA a piece of data which is way
larger than the key size (48 bytes).
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to encrypt public data along with another tuple and then
decrypt it after sending. RSA is needed for negotiation of keys for
AES. But I just get garbage after I decrypt it. This is what I'm
attempting to do:
from Crypto.PublicKey import RSA
from Crypto import Random
gkey = RSA.generat
't use chaining). With ECB mode, you
>>> don't need the IV string.
>>
>> However, ECB mode is not as secure- the IV is the right way to go
>> here.
>
> Right - I forgot that PyCrypto applies the chaining internally
> when being passed data of more than
On Tue, Jan 26, 2010 at 7:23 PM, Daniel wrote:
> I understand the risks of unpickle. With strong, authenticated
> encryption I think it is reasonably safe to send an encrypted pickle
> through an untrusted medium (the Internet) and know that it has not
> been modified enroute. That is, unless s
te. That is, unless someone has obtained the key,
in which case I have a bigger problem to worry about.
> >>> Also, slightly related, is there an easy way to get the sha/md5
> >>> deprecation warnings emitted by PyCrypto in Python 2.6 to go away?
>
> >> Yes: you
geremy condra wrote:
> I'd also note that you aren't supposed to use RandomPool anymore,
OK, I updated the recipe to use os.urandom()
> and that AES-192 is frequently recommended over AES-256 for
> new applications due to a number of recent developments in
> the cryptanalysis of its key schedule.
e opens
up lots of possibilities of executing code on the decoding
side of the communication channel.
>>> Also, slightly related, is there an easy way to get the sha/md5
>>> deprecation warnings emitted by PyCrypto in Python 2.6 to go away?
>>
>> Yes: you silence them vi
27;t the last line in decrypt() do it?
return data[:-ord(data[-1])]
Given, it's a bit cryptic... no pun intended :)
> > Also, slightly related, is there an easy way to get the sha/md5
> > deprecation warnings emitted by PyCrypto in Python 2.6 to go away?
>
> Yes: you silen
gt; However, ECB mode is not as secure- the IV is the right way to go
> here.
Right - I forgot that PyCrypto applies the chaining internally
when being passed data of more than 32 bytes.
> I'd also note that you aren't supposed to use RandomPool anymore,
> and that AES-192 is fr
gt;> http://code.activestate.com/recipes/576980/
>>
> [...]
> You are also using CBC mode, even though you are really after
> ECB mode (your code doesn't use chaining). With ECB mode, you
> don't need the IV string.
Sorry. Forget that last comment - your code does use chaining
Daniel writes:
> Of course, it does not meet all of the requirements set forth by the
> OP in the referenced thread (the pycrypto dependency is a problem),
> but it is an attempt to provide a simple interface for performing
> strong, password-based encryption. Are there already modul
On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote:
> You are also using CBC mode, even though you are really after
> ECB mode (your code doesn't use chaining). With ECB mode, you
> don't need the IV string.
However, ECB mode is not as secure- the IV is the right way to go
here.
I'd also n
course, it does not meet all of the requirements set forth by the
> OP in the referenced thread (the pycrypto dependency is a problem),
> but it is an attempt to provide a simple interface for performing
> strong, password-based encryption. Are there already modules out there
> that p
y the
OP in the referenced thread (the pycrypto dependency is a problem),
but it is an attempt to provide a simple interface for performing
strong, password-based encryption. Are there already modules out there
that provide such a simple interface? If there are, they seem to be
hiding somewhere o
l
Done. Caveats: The following modules did not work:
_bsddb _ctypes bz2 gdbm.
However, since we do not need them I did not attempt to debug them.
###
Third, we also needed pycrypto. Here are the instructions:
- cd pycrypto-2.0.1
- In src/SHA256.c, remove all lines starting with "//&quo
t; Note that the alternate CCOPT variable that is mentioned in the
> comments of that file does NOT work, so just use this instead.
>
> 6. ./configure && make && make install
>
> Done. Caveats: The following modules did not work:
>
> _bsddb _ctypes bz2 gdbm
ng modules did not work:
_bsddb _ctypes bz2 gdbm.
However, since we do not need them I did not attempt to debug them.
###
Third, we also needed pycrypto. Here are the instructions:
- cd pycrypto-2.0.1
- In src/SHA256.c, remove all lines starting with "//".
- python2.7 setup.py
Hello everyone,
I'm trying to freeze PyCrypto on Linux (using freeze.py) and having
trouble with it, can you help me? PyCrypto is used by paramiko (ssh
client module).
I have added following in the Modules/Setup while building Python (This
has to be done because freeze.py requires tha
On 2009-02-25 13:25, Helmut Jarausch wrote:
> Helmut Jarausch wrote:
>> Hi,
>>
>> I've just tried to write a simple example using PyCrypto's
>> AES (CBC mode)
>>
>> #!/usr/bin/python
>> from Crypto.Cipher import AES
>>
>> PWD='abcdefghijklmnop'
>> Initial16bytes='0123456789ABCDEF'
>>
>> crypt = AES
Helmut Jarausch wrote:
Hi,
I've just tried to write a simple example using PyCrypto's
AES (CBC mode)
#!/usr/bin/python
from Crypto.Cipher import AES
PWD='abcdefghijklmnop'
Initial16bytes='0123456789ABCDEF'
crypt = AES.new(PWD, AES.MODE_CBC,Initial16bytes)
# crypt = AES.new(PWD, AES.MODE_ECB)
Hi,
I've just tried to write a simple example using PyCrypto's
AES (CBC mode)
#!/usr/bin/python
from Crypto.Cipher import AES
PWD='abcdefghijklmnop'
Initial16bytes='0123456789ABCDEF'
crypt = AES.new(PWD, AES.MODE_CBC,Initial16bytes)
# crypt = AES.new(PWD, AES.MODE_ECB)
txt = 'ea523a664dabaa44
I installed from here:
http://bazaar-vcs.org/WindowsInstall
first pycrypto-2.0.1.win32-py2.5.zip
then paramiko-1.7.1-ctypes.win32.exe
--
http://mail.python.org/mailman/listinfo/python-list
I am really stuck presently, trying to install these on my Windows XP.
I have downloaded easy_install and it is now in Python25\Scripts but
none of the commands I have read in either program folder have worked
to install them.
I was hoping someone could give me a step by step guide to installing
t
I snipped this bit of code out of Andrew Kuchling 'pyCrypto' test
fixture. Having a need to XOR Binascii Hex strings in my current
project, I found it very helpful to cut down on a bit of code
clutter.
So if you have a need for a Crypto module, this one seems to work off
the self wi
At Sunday 7/1/2007 18:23, [EMAIL PROTECTED] wrote:
Is a docstring is the text between the three consecutive quote
characters in a .py file? The reason for the question is that I looked
See section 4.6 in the Python Tutorial - I strongly suggest you read
it (or any other introductory text lik
Sebastian 'lunar' Wiesner wrote:
> Since you are apparently unable to read to docstrings of this module, I
> will give you a short hint: yes, pycrypto supports AES with 256 bit
> keys.
Thank you for the information.
The material I consulted was:
a) the PyCrypto manual: http:
me follow up questions and 1 tangential question.
>
> Follow up question:
> Would it be correct to infer that:
> a) the AES.pyd extension module (plus whatever additional files
> within the PyCrypto package that it uses) has the capability to
> perform AES256 encryption?
>
correct to infer that:
a) the AES.pyd extension module (plus whatever additional files within
the PyCrypto package that it uses) has the capability to perform AES256
encryption?
b) the AES256 encryption happens based on the characteristics of the
input to the new() method...if the first argument ha
In <[EMAIL PROTECTED]>, mirandacascade
wrote:
> Would the following Python code perform AES256 encryption on plainText
> from Crypto.Cipher import AES
> x = AES.new(a, AES.MODE_CBC, iv)
> x.encrypt(plainText)
>
> assuming:
> a = the key value
> iv = an initialization vector
> ?
`a` must be of l
Attempting to determine whether the PyCrypto package has the capability
to perform AES256 encryption. I received the following C# snippet:
CryptoProvider provider = new CryptoProvider();
Encrypted_Type password = new Encrypted_Type();
password.EncryptedData = new EncryptedDataType
he sha module comes with python 2.4?
> 2) Is it correct that the sha module that ships with python 2.4 does
> NOT have the SHA-256 capability as part of the module?
> 3) It looks like PyCrypto is a package that, among other things,
> permits one to calculate a message digest using an SHA-25
Dennis Benzinger wrote:
>
> Python 2.5 comes with SHA-256 in the hashlib module.
> So you could install Python 2.5 instead of the PyCrypto module.
You can download the python2.5 hashlib module for use with python2.4
-MIke
--
http://mail.python.org/mailman/listinfo/python-list
rect that the sha module comes with python 2.4?
> 2) Is it correct that the sha module that ships with python 2.4 does
> NOT have the SHA-256 capability as part of the module?
> 3) It looks like PyCrypto is a package that, among other things,
> permits one to calculate a message digest us
with python 2.4 does
NOT have the SHA-256 capability as part of the module?
3) It looks like PyCrypto is a package that, among other things,
permits one to calculate a message digest using an SHA-256
algorithm...is that correct?
4) It looks like there are a couple couple possibilities available for
the
hg wrote:
> Ning wrote:
>
>> I'm trying to write an IM client which sends encrypted messages to the
>> server. I tried to use pycrypto library, but when I came to 3DES
>> cypher I was confused about the keysize to use. In the standard it
>> said that it sh
Ning wrote:
> I'm trying to write an IM client which sends encrypted messages to the
> server. I tried to use pycrypto library, but when I came to 3DES
> cypher I was confused about the keysize to use. In the standard it
> said that it should be either 112 bits or 168 bits
I'm trying to write an IM client which sends encrypted messages to the
server. I tried to use pycrypto library, but when I came to 3DES
cypher I was confused about the keysize to use. In the standard it
said that it should be either 112 bits or 168 bits, whereas it's 16
bytes or 2
Hello again
You know if is possible save all the encryption process in a text file
and not only the result?
This will be wery helpful for compare the pycrypto step by step
operation, with the hand made operation and see where hand made make a
mistake
--
http://mail.python.org/mailman/listinfo
[EMAIL PROTECTED] wrote:
> ValueError: Input strings must be a multiple of 16 in length
As James Stroud noted, a CBC mode cipher is still a block cipher, and
the input *must* be a multiple of the block size.
OpenSSL provides a standard padding mechanism so that there are no input
size limitations
> In [26]:import binascii
>
> In [27]:binascii.unhexlify('ea523a664dabaa4476d31226a1e3bab0')
> Out[27]:'\xeaR:fM\xab\xaaDv\xd3\x12&\xa1\xe3\xba\xb0'
>
> Ciao,
> Marc 'BlackJack' Rintsch
Ciao Marc
Grazie Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Laszlo Nagy wrote:
>
>> Not in this implementation:
>> py> from Crypto.Cipher import AES
>> py> crypt = AES.new('abcdefghijklmnop', AES.MODE_CBC)
>> py> c = crypt.encrypt('1')
>> Traceback (most recent call last):
>> File "", line 1, in ?
>> ValueError: Input strings must be a multiple of 16 in
In <[EMAIL PROTECTED]>, luca72 wrote:
> Hello again i have solve doing this:
>
> from Crypto.Cipher import AES
> stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16)
Hello again i have solve doing this:
from Crypto.Cipher import AES
stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16))+chr(int('71',16))+chr(int('32',16))+chr(int(
1 - 100 of 128 matches
Mail list logo