Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

How to encrypt effeciently large assetbundle encryption?

Discussion in 'Asset Bundles' started by siz20971_indie, Aug 6, 2019.

  1. siz20971_indie


    Aug 10, 2012
    Hi. I'm trying to some kinds of things to protect my resources.
    But I can't find good way for this.

    Process that I'm tried.
    1. Encrypt assetbundle with random positions.
    2. Write encrypt positions information to log file.
    3. When I use that assetbundle, read logfile and decrypt, load assetBundle by 'AssetBundle.LoadFromMemory'

    This way has many problems.
    1. To decryption, I must be load all bytes of file and makes high memory usage.
    2. load bytes -> decryption -> AssetBundle.LoadFromMemory is too slow in comparison to AssetBundle.LoadFromFile.
    3. Single AssetBundle.LoadFromMemory action is too slower than AssetBundle.LoadFromFile.

    What else best way to protect assetbundle?
    Or How do you protect your assetbundle?