Coder Social home page Coder Social logo

Comments (6)

fabiolamin avatar fabiolamin commented on August 28, 2024 1

@thomasftg Hi, yes the latter. It is possible to do for projects with a small number of AssetBundles. Due the issues mentioned we are not able to provide an official sample project at this time.

You could create a custom AssetBundleProvider class that extends that base class, and additionally handles the encryption and decryption steps. One way to approach this is to use LZ4 Decryption. An AssetBundle that uses LZ4 compression consists of 256KB chunks that can be encrypted. The bundle can be loaded from a seekable stream (AssetBundle.LoadFromStreamAsync) and individual chunks can be decrypted as they are loaded.

Hello, thank you for the tips! Which methods can I use to do the encryption and decryption? Can you guide me how the AssetBundleProvider works in order that I can make a cryptography implementation, please? Best regards!

from addressables-sample.

ChetRippo avatar ChetRippo commented on August 28, 2024

i agree, this would be very useful to have. Would like to not have to worry about assets being flipped right after launch.

from addressables-sample.

renatoi avatar renatoi commented on August 28, 2024

In multiple Unite talks the dev mentioned that an encryption example would be available on Github. Yet, I couldn't find them. Has this been abandoned?

from addressables-sample.

kirstenpilla avatar kirstenpilla commented on August 28, 2024

Hi all apologies for the delay! Unfortunately there are no plans to provide an example project demonstrating encryption. There are some limitations such as bundle caching and memory increases that make it not feasible, especially for projects with lots of AssetBundles.

from addressables-sample.

 avatar commented on August 28, 2024

Hi all apologies for the delay! Unfortunately there are no plans to provide an example project demonstrating encryption. There are some limitations such as bundle caching and memory increases that make it not feasible, especially for projects with lots of AssetBundles.

Can you elaborate a bit more so we can find a solution? Specifically is it NOT possible or does the team not have the bandwidth to provide the sample given some quick prototyping issues being encountered (caching/mem increase you mention).

from addressables-sample.

kirstenpilla avatar kirstenpilla commented on August 28, 2024

@thomasftg Hi, yes the latter. It is possible to do for projects with a small number of AssetBundles. Due the issues mentioned we are not able to provide an official sample project at this time.

You could create a custom AssetBundleProvider class that extends that base class, and additionally handles the encryption and decryption steps. One way to approach this is to use LZ4 Decryption. An AssetBundle that uses LZ4 compression consists of 256KB chunks that can be encrypted. The bundle can be loaded from a seekable stream (AssetBundle.LoadFromStreamAsync) and individual chunks can be decrypted as they are loaded.

from addressables-sample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.