Skip to content

Adding documentation around swfencrypt and encrypted embed data#190

Merged
marchbold merged 2 commits intoairsdk:mainfrom
ajwfrost:feature/encryption
Mar 23, 2026
Merged

Adding documentation around swfencrypt and encrypted embed data#190
marchbold merged 2 commits intoairsdk:mainfrom
ajwfrost:feature/encryption

Conversation

@ajwfrost
Copy link
Copy Markdown
Contributor

A new file/topic that describes the options we have for encrypting SWF content, either via the swfencrypt tool or by using the AIR compiler with embedded data and the 'encrypted' setting.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation page under Tools → Compiling & Packaging describing two approaches for encrypting SWF-related content in AIR: whole-SWF encryption via swfencrypt and compiler-driven encrypted embedded blob data.

Changes:

  • Introduces a new MDX page documenting swfencrypt usage and runtime behavior.
  • Documents the Embed(..., encrypted=...) option and System.decryptBlob() workflow, including -compiler.encryption-key.
  • Adds a new sidebar category for the encryption docs section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
docs/tools/building/encryption/index.mdx New documentation page explaining SWF encryption approaches and how to decrypt embedded encrypted blobs at runtime.
docs/tools/building/encryption/category.json Creates a new “Encryption” category entry in the docs sidebar hierarchy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +24 to +27
```
[Embed(source="filename.dat", mimeType="application/octet-stream")]
private const MyData : Class;
```
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ActionScript example uses spaces around the type annotation colon (e.g., MyData : Class). Elsewhere in the docs (including the coding conventions) the style is name:Type; update this snippet to match for consistency.

Copilot uses AI. Check for mistakes.
Comment on lines +32 to +37
```
[Embed(source="filename.dat", mimeType="application/octet-stream", encrypted="true")]
private const MyData1 : Class;
[Embed(source="filename.dat", mimeType="application/octet-stream", encrypted="encryption_key_1")]
private const MyData2 : Class;
```
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same ActionScript formatting issue here: the type annotations are written with spaces around the colon (e.g., MyData1 : Class). Update to the repository’s documented convention (name:Type) for consistency.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@marchbold marchbold merged commit a8e2a4b into airsdk:main Mar 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants