[Chicago] pysimplesoap and windows sql server

Rob Kapteyn robkapteyn at gmail.com
Mon Jun 8 08:07:24 CEST 2015


That's my first guess too.
md5 is a really old module:
"*Deprecated* since version 2.5: Use the hashlib module instead"

I would not be surprised if it didn't work correctly on Unicode strings,
especially something like Windows-1252.


On Fri, Jun 5, 2015 at 8:09 PM, Jeremy McMillan <jeremy.mcmillan at gmail.com>
wrote:

> I don't see your python code attempting to md5 the string.
>
> Maybe you should try using hashlib?
>
> https://docs.python.org/2/library/hashlib.html
>
> On Fri, Jun 5, 2015 at 10:27 AM, brian herman <
> bherman at uniqueinsuranceco.com> wrote:
>
>>  I have a python application that uses pysimplesoap to send a soap
>> request to windows.
>> The problem is the password field is not encoded in UTF-8 it may use
>> Windows-1252?
>> Python Code
>> https://gist.github.com/brianherman/209af7751444ec308e1b
>> Visual Basic Sample code (how to encode the password field in visual
>> basic)
>> https://gist.github.com/brianherman/b4174b99be9000fcc4f8
>> They use visual basic to encode the password which works. The problem is
>> reproducing this in python
>> This is the encoded password in the database (microsoft sql server):
>>
>> I have tried using the md5 package in python but I can't seem to get the
>> encoding right.
>>
>> --
>>
>>  Brian Herman
>> IT Department
>> O: (773)299-7557
>>
>>  [image: Unique Insurance Company] <https://www.uniqueinsuranceco.com>
>>
>> We value your input, please click here to provide feedback on Unique
>> Insurance. <http://www.reputation.com/kiosk?key=d41c9b57f18>
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> https://mail.python.org/mailman/listinfo/chicago
>>
>>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20150608/355b8761/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20150608/355b8761/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: becefjde.
Type: image/png
Size: 1312 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/chicago/attachments/20150608/355b8761/attachment.png>


More information about the Chicago mailing list