{"id":5898,"date":"2025-10-18T22:07:04","date_gmt":"2025-10-18T22:07:04","guid":{"rendered":"https:\/\/castle-engine.io\/wp\/?p=5898"},"modified":"2025-10-18T22:07:04","modified_gmt":"2025-10-18T22:07:04","slug":"demo-how-to-distribute-web-application-with-encrypted-data","status":"publish","type":"post","link":"https:\/\/castle-engine.io\/wp\/2025\/10\/18\/demo-how-to-distribute-web-application-with-encrypted-data\/","title":{"rendered":"Demo how to distribute web application with encrypted data"},"content":{"rendered":"<table class=\"thumbnails thumbnails-align-right\"><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2025\/10\/Zrzut-ekranu-z-2025-10-18-20-35-22.png\"\n             class=\"screenshot\"\n             title=\"Web application with encrypted data\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2025\/10\/Zrzut-ekranu-z-2025-10-18-20-35-22-200x100.png\"\n             width=\"200\" height=\"100\" \n            alt=\"Web application with encrypted data\"\n          ><\/a><\/td><\/tr><\/table>\n<p>We present a demo showing how you can keep your web application data encrypted (with decryption key embedded in your application code).<\/p>\n<p>By default, when you build a <a href=\"https:\/\/castle-engine.io\/web\">web application<\/a>, the data is packed into a ZIP file, and a person that wants to access your data can download this ZIP and unpack the data on their own system (and e.g. extract your 3D models or textures).<\/p>\n<p>The demo on <a href=\"https:\/\/github.com\/castle-engine\/demo_encrypt_decrypt_data\">demo_encrypt_decrypt_data<\/a> shows how to prevent this. The data gets encrypted using <code>BlowFish<\/code> with your password, and then it is decrypted as you access it from your WebAssembly application. Read the <code>README.md<\/code> instructions in the demo for<\/p>\n<ul>\n<li>how to build it,<\/li>\n<li>how it works,<\/li>\n<li>how to adopt it to your own applications,<\/li>\n<li>and, to be clear and explicit, what are the limitations of this approach. It&#8217;s not a fool-proof solution to keep your data secret from a dedicated attacker, and there&#8217;s no such solution (in any game engine).<\/li>\n<\/ul>\n<p>The <a href=\"https:\/\/github.com\/castle-engine\/demo_encrypt_decrypt_data\">README in the demo_encrypt_decrypt_data project<\/a> already explains all the details, so if this sounds interesting, please read it \ud83d\ude42<\/p>\n<p><em>Big thank you go to <a href=\"https:\/\/dream.crc.und.edu\/\">UND DREAM Lab<\/a> for sponsoring this demo through Patreon! Your <a href=\"https:\/\/castle-engine.io\/donate\">donations to Castle Game Engine<\/a> make our engine sustainable.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We present a demo showing how you can keep your web application data encrypted (with decryption key embedded in your application code). By default, when you build a web application, the data is packed into a ZIP file, and a person that wants to access your data can download this ZIP and unpack the data &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/castle-engine.io\/wp\/2025\/10\/18\/demo-how-to-distribute-web-application-with-encrypted-data\/\" class=\"more-link\">Continue reading  \u27a4<span class=\"screen-reader-text\"> &#8220;Demo how to distribute web application with encrypted data&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":5899,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"publish_to_discourse":"1","publish_post_category":"9","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"7167","discourse_permalink":"https:\/\/forum.castle-engine.io\/t\/demo-how-to-distribute-web-application-with-encrypted-data\/2039","wpdc_publishing_response":"","wpdc_publishing_error":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-5898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2025\/10\/Zrzut-ekranu-z-2025-10-18-20-35-22.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9IgYW-1x8","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/comments?post=5898"}],"version-history":[{"count":2,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5898\/revisions"}],"predecessor-version":[{"id":5901,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5898\/revisions\/5901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media\/5899"}],"wp:attachment":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media?parent=5898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/categories?post=5898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/tags?post=5898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}