A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/077473.html below:

call of non-function (type string) error

call of non-function (type string) error call of non-function (type string) errorGraham Guttocks graham_guttocks at yahoo.co.nz
Wed Apr 11 11:25:24 EDT 2001
Paul Prescod <paulp at ActiveState.com> wrote: 

> What you want is
> 
> CIPHER = "DES"
> import Crypto.Cipher
> 
> cipher = getattr(Crypto.Cipher, CIPHER)
> cipherobj = cipher.new(KEY, CIPHER+".CBC", IV)

This doesn't seem to work for me:

>>> CIPHER = "DES3"
>>> import Crypto.Cipher
>>> cipher = getattr(Crypto.Cipher, CIPHER)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: DES3


_____________________________________________________________________________
http://movies.yahoo.com.au - Yahoo! Movies
- Now showing: Dude Where's My Car, The Wedding Planner, Traffic..


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4