cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
craigblowfield
Frequent Visitor

Thought cache files were encrypted!!

I have been doing some investigation around caching in PowerApps for a client. After some digging around I found the location of where the Windows version of Power Apps host app stores cache files for an app

 

C:\Users\<User>\AppData\Local\Packages\Microsoft.MSApps_8wekyb3d8bbwe\LocalState\

 

Then navigate to


<SOME NUMBER>\UserSavedData for example 76\UserSaveData

 

In here was the cache files I created using the SaveData() function for a test app. Opening this cache file in a text editor showed

 

PK
ÛUZPïÄb¢ó ó data.json[{"Created":1582713736581,"Filename":"testcachecollection_26022020_104212947","TotalItems":500},{"Created":1582713739832,"Filename":"testcachecollection_26022020_104216947","TotalItems":500},{"Created":1582713743194,"Filename":"testcachecollection_26022020_104220361","TotalItems":500},{"Created":1582713763864,"Filename":"testcachecollection_26022020_104240844","TotalItems":500},{"Created":1582713767695,"Filename":"testcachecollection_26022020_104244412","TotalItems":500},{"Created":1582713771279,"Filename":"testcachecollection_26022020_104248078","TotalItems":500},{"Created":1582713774915,"Filename":"testcachecollection_26022020_104251811","TotalItems":500},{"Created":1582713849483,"Filename":"testcachecollection_26022020_104406667","TotalItems":500},{"Created":1582713874273,"Filename":"testcachecollection_26022020_104431144","TotalItems":500},{"Created":1582713878843,"Filename":"testcachecollection_26022020_104434667","TotalItems":500},{"Created":1582713882791,"Filename":"testcachecollection_26022020_104439372","TotalItems":500},{"Created":1582714010238,"Filename":"testcachecollection_26022020_104647340","TotalItems":500},{"Created":1582714013677,"Filename":"testcachecollection_26022020_104650787","TotalItems":500}]PK
ÛUZPC¿¦£  schema.json{}PK
ÛUZPä¤X/ / header.json{"docVersion":"1.281","minLoadVersion":"1.281"}PK
ÛUZPïÄb¢ó ó data.jsonPK
ÛUZPC¿¦£   schema.jsonPK
ÛUZPä¤X/ / E header.jsonPK   © 

 

Their is the json in plain text! which is surprising and worrying as the documentation for Power Apps clearlt states that cached data is encrypted by default!! Or maybe I am missing something.

5 REPLIES 5
Pranav_Shroti
Kudo Collector
Kudo Collector

Hi, How are you managing to store the data on local device while accessing it from brower ? I get below error.

CanvasAppGetData.PNG

 

 

Are you certain, you are checking the correct location. 

Caching cannot be used from the browser.

 

The app is running within the Windows Power Apps app (available from the store).

Can anyone from MS provide an explanation for this?

The documentation states

 

"Storage is encrypted and in a private location on the local device, isolated from other users and other apps."

 

Which indicates that the caching functionality is relying on the OS to encrypt the app data, which I believe is the case for iOS and Android, but not Windows right?

 

And also in this 'Inspect SaveData() cache?related forum post, a PowerApps staff member responds with

 

"The file will have a weird name and is encrypted. As Michael says, the only way to read it is via LoadData."

 

Which from my findings is incorrect for Windows as the documentation insinuating that encryption is applied across all OS's that Power Apps can run on.

 

Could a MS staff member respond

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,124)