Java CryptUnprotectData Windows WiFi Passwords

前端 未结 1 1835
我寻月下人不归
我寻月下人不归 2021-01-27 10:20

I\'m trying to decrypt a Windows WiFi password on the same machine using Java which is supposed to work with cryptUnprotectData() but I\'m getting the following error:



        
相关标签:
1条回答
  • 2021-01-27 11:06

    You're using getBytes() on a hex string, when you should be parsing the hex string into bytes.

    Choose your preferred way from the following links.

    In Java, how do I convert a hex string to a byte[]?

    Convert a string representation of a hex dump to a byte array using Java?

    0 讨论(0)
提交回复
热议问题