SmartCloud783 / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

keychain_tool.py using option "-p" fails with UnicodeDecodeError #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to output to a .csv file, exceptions are raised such as:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position 0: ordinal 
not in range(128)

This looks to be due to the binary passwords in the keychain trying to be 
handled as ASCII inside the render_password function in keychain.py

Attached is a patch for keychain.py that resolved the issue for me (patch 
created with diff)

Original issue reported on code.google.com by 0x56.0x6...@gmail.com on 18 Nov 2011 at 4:15

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 58f752fe8a05.

Original comment by jean.sig...@gmail.com on 27 Nov 2011 at 5:51