0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NSDataをNSStringに変換すると(null)になる。

Last updated at Posted at 2019-05-09


NSData card_data:<----- ------ ------ ----->
NSString card_no:@"12345678"

AES128復号処理を行った上記のNSDataを

NSString* cardNoStr = [[NSString alloc] initWithData: card_data encoding: NSUTF8StringEncoding];

NSDataの情報をNSStringに変換する処理を実行したのですが、変換結果がNULLになってしまいました。

上記の方法で他のエンコード(UTF16,ASCII)方法も試しましたが、全てnullになってしまいました。
card_noの値が出る方法を教えてください。

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?