# Is encryption possible when using "Asset Bundle" import type

**URL:** https://qa.fmod.com/t/is-encryption-possible-when-using-asset-bundle-import-type/22601
**Category:** Unity
**Created:** [February 16, 2025, 1:31am UTC](https://qa.fmod.com/t/is-encryption-possible-when-using-asset-bundle-import-type/22601 "2025-02-16T01:31:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lmirman5476](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/lmirman5476/32/7983_2.png) [@lmirman5476](https://qa.fmod.com/u/lmirman5476)
#### Post date: [February 16, 2025, 1:31am UTC](https://qa.fmod.com/t/is-encryption-possible-when-using-asset-bundle-import-type/22601/1 "2025-02-16T01:31:04Z")

</div>

Hi there!

Recently my team has switched our `Import Type` from “Streaming Assets” to “Asset Bundle”. We specifically utilized the `Addressables` system over AssetBundle [as suggested by the documentation](https://fmod.com/docs/2.02/unity/user-guide.html#assetbundles-addressables). All has went well in this transition but in the process the “Bank Encryption Key” has been disabled in the `Initialization` FMOD settings window.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/66a63bde1b0e79db69852a48b48a2eeae9e4fb9d.png)

Setting the encryption key while it isn’t disabled, either through debug inspector or while import mode is Streaming Assets, does seemingly decrypt the banks as expected in editor but when making a build the banks fail to load.

I’ve also tried using the `setAdvancedSettings` function but received an error that the studio system was already initialized.

Is there any way to utilize an encryption key in this context or is this an impossibility due to the asset bundle import method.

**Versions**  
Unity 2021.3.35  
FMOD Unity and Studio Version 2.02.22

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [February 24, 2025, 2:23am UTC](https://qa.fmod.com/t/is-encryption-possible-when-using-asset-bundle-import-type/22601/2 "2025-02-24T02:23:42Z")

</div>

It isn’t explicit in our documentation but it isn’t possible to use AssetBundles with encryption keys in FMOD Studio.

When using FMOD Banks in Asset Bundles, first the asset bundle needs to be loaded using the `UnityWebRequest` system and then the data needs to be loaded by FMOD using [loadBankMemory](https://www.fmod.com/docs/2.02/api/studio-api-system.html#studio_system_loadbankmemory).

`loadBankMemory` is not compatible with encryption keys but needs to be used because the data returned from the `UnityWebRequest.downloadHandler` is a raw byte array stored in memory rather than a file from disk.
