Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

[Security - WebGL] Can hacker read data in buffer?

Discussion in 'General Discussion' started by khoaphp, Feb 6, 2022.

  1. khoaphp

    khoaphp

    Joined:
    Sep 12, 2015
    Posts:
    1
    Hi guys, can hacker read data when game is running?

    For example: In game, I create an public array [0,9,6,6,9,0,8,9,0,7]. This script was attached to an object in game.

    I wonder that, if I build this game in WebGL/Andoir/iOS, could hacker read this array?

    Thank you.
     
  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    Trivially.
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    19,783
    Anything stored on the user's computer whether in the processor, in memory, or in storage can be read by the user.
     
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,643
  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,241
    a WebGL build is entirely downloaded on to the end-user's system, so nothing you do in WebGL can ever be secure from the end-user. Typically, if you need something unhackable, then you need a separate server-side application that your game connects to.