[Python-Dev] SHA-256 module
Raymond Hettinger
python at rcn.com
Tue Jun 29 02:25:00 EDT 2004
> > On Tue, Jun 29, 2004 at 04:10:22PM +0100, Armin Rigo wrote:
> > > We may consider whether adding, over time, a bunch of modules
named
> shaXXX
> > > doesn't mean we should start thinking about a way to group all
these
> > > algorithms into a single module.
> >
> > It would be possible to change the signature of sha.new() to
> > sha.new('string', bits=256) and have all the variants in one module,
> > if we want SHA-256 but not a separate module.
>
> That seems like a very nice solution to me.
+1
Raymond
More information about the Python-Dev
mailing list