[SciPy-User] encryption of numpy array (wav file) ?

Robert Kern robert.kern at gmail.com
Sat Jul 25 17:17:17 EDT 2009


On Sat, Jul 25, 2009 at 16:13, Stef Mientki<stef.mientki at gmail.com> wrote:
> hello,
>
> I need to encrypt a wav file (conversation between doctor and his patient).
> Now it's easy to convert a wav file ( or maybe even the sound stream
> itself) into a numpy array.
> Everything runs on a slow machine (netbook),
> so I hope numpy can encrypt on the flight.
> I don't need very secure encryption, just good enough to protect the
> patient information from accidental listening by others.
>
> Any idea of a relative simple (and fast) encryption method with numpy
> arrays ?

Not on numpy arrays, no. Just use the normal crypto tools on strings.
Preferably, use a complete tool like GPG (for files) or SSL (for
network connections) than just using a library like PyCrypto.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list