Update key.py

Correct decoding in key md5 management