Untitled
分析したりしたいので、個人を特定するためのIDを利用しなければいけなくなりました。

そこでまず候補として上がったのが UDID: Unique Device Identifier

簡単に言えば、端末情報。その携帯それぞれが持ってる固有のIDですね。

iPhoneに関しては以下の2行書けば取得できる
UIDevice *device = [UIDevice currentDevice];
NSString *udid = [device uniqueIdentifier];


しかし、このUDIDはセキュリティのことを考えたら、まず使ってはいけないID。

みんなが普通に使ってれば何も危険なことはないのだが、一人でも危険な人がいればこのIDが危険なものになる。

例えば、このIDを使って位置情報を保存したとしよう。

そして、引き出す時にそのUDIDを用いてそのユーザの位置情報を引き出すとすると、もし他の知らない誰かがあなたのUDIDを知っていたら、あなたがどこにいるのか突き止められるというわけである。

しかも、この世には「UDID Faker」というアプリまであり、jailbreakしたiPhone OSで使用でき、指定したアプリに対してUDIDを差し替えることができる。

おそろしや・・・


そこで、UDIDのセキュリティリスクを回避するためにあるのがUUID:Universally Unique Identifier

乱数IDを生成し、文字通り世界に一つのIDを作れる。

UUIDは16バイトの数値で表され、「550e8400-e29b-41d4-a716-446655440000」のように表現される。

よく利用されるのは乱数に基づくUUID(UUID version 4)で、この形式のUUIDは2の122乗通り(およそ5.3×10の36乗通り)存在する。

ちなみに、10の36乗は・・・http://homepage2.nifty.com/NG/unit/sub.htm

なので、このUUIDをアプリ起動時に一度生成するようにプログラムに組み込めば、それと同じIDを探すことはまず不可能。(運営側が教えない限り)
  1. rngsw reblogged this from yaruo
  2. nobby0-0 reblogged this from yaruo
  3. arwing reblogged this from yaruo
  4. pns05017 reblogged this from ishibashi
  5. ishibashi reblogged this from sakimura
  6. megumu226 reblogged this from mcsgsym
  7. bivanilla reblogged this from mizki9577
  8. sakimura reblogged this from shingoym
  9. yuden reblogged this from mcsgsym
  10. hikutuo reblogged this from yaruo
  11. yabeaki reblogged this from yaruo
  12. tame-o reblogged this from yaruo
  13. msin667 reblogged this from yaruo
  14. gonfreak reblogged this from yaruo
  15. weviarism reblogged this from mcsgsym
  16. mizki9577 reblogged this from 0shun
  17. extruck reblogged this from chlono
  18. chlono reblogged this from yaruo
  19. capper reblogged this from yaruo
  20. blasno reblogged this from yaruo
  21. red765 reblogged this from yaruo
  22. takexxxx reblogged this from yaruo
  23. tomatos reblogged this from ipodstyle
  24. yatum-44 reblogged this from yaruo
  25. ken0205 reblogged this from mcsgsym
  26. takeshi reblogged this from yaruo
  27. okwry reblogged this from yaruo
  28. shingoym reblogged this from yaruo
  29. zaiga reblogged this from yaruo
  30. dragstar reblogged this from yaruo
  31. guttitb reblogged this from yaruo
  32. daizydaizy reblogged this from nashi-kyo
  33. ipodstyle reblogged this from yaruo
  34. k32ru reblogged this from mcsgsym
  35. fujihajime reblogged this from yaruo