无法将MD5散列转换为Ionic中的阵列缓冲区
问题描述:
MD5样例84e575e8930be31609406816658033cb。需要进行转换无法将MD5散列转换为Ionic中的阵列缓冲区
commandValue = Md5.hashStr(commandValue);
console.log("MD5 after generation "+commandValue);
答
MD5是一种方式,你不能解密。
如果你想散列数组缓冲区,JSON.stringify它,如果md5函数不接受它。
commandValue = Md5.hashStr(JSON.stringify(value_to_hash));
问候
汤姆