NSData to Java String

后端 未结 2 1811
野趣味
野趣味 2021-01-16 14:59

I\'ve been writing a Web Application recently that interacts with iPhones. The iPhone iphone will actually send information to the server in the form of a plist. So it\'s no

2条回答
  •  日久生厌
    2021-01-16 15:44

    According to our friends at wikipedia, the tag contains Base64 encoded data. So, use your favorite Java "Base64" class to decode (see also this question).

    ps. technically, this is neither "hashed" nor "encrypted", simply "encoded". "Hashed" implies a one-way transformation where multiple input values can yield the same output value. "Encrypted" implies the need for a (usually secret) "key" to reverse the encryption. Base64 encoding is simply a way of representing arbitrary binary data using only printable characters.

提交回复
热议问题