Skip to main content
IoT
PSUT Engineering StudioPrincess Sumaya University for Technology
V21.6.5 · Student / connected
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
Home / IoT Security and Privacy / EC13
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
OPTIONAL CAPSTONE · EC13 · IoT SECURITY AND PRIVACY
IoT Security and Privacy

Optional capstone — Hybrid cryptographic secure storage

Investigate client-side file encryption, key wrapping, encrypted storage and authorized sharing, based on the supplementary project brief.

Design experiment & verify evidence →
EC13 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
EC13 · Academic orientation

Scope and objectives

Scope of the experiment

Investigate client-side file encryption, key wrapping, encrypted storage and authorized sharing, based on the teaching material.

The focus of this experiment is to design a hybrid secure-storage workflow separating data and key protection. Students then trace encryption, key wrapping and authenticated recovery, and verify tamper rejection and document trust and storage assumptions. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Design a hybrid secure-storage workflow separating data and key protection.
  • Trace encryption, key wrapping and authenticated recovery.
  • Verify tamper rejection and document trust and storage assumptions.
  • Record the relevant inputs, intermediate states and final verification result before changing the reference configuration.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can design a hybrid secure-storage workflow separating data and key protection, trace encryption, key wrapping and authenticated recovery, and verify tamper rejection and document trust and storage assumptions.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify tamper rejection and document trust and storage assumptions. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Ascon — lightweight authenticated encryption and hashing.

Environment and experimental methodology

The included teaching workstation and the listed Python/Colab or WSL implementation. Historical and small-number constructions are instructional, not deployment recommendations.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

How to investigate Optional capstone — Hybrid cryptographic secure storage

Investigate client-side file encryption, key wrapping, encrypted storage and authorized sharing, based on the supplementary project brief.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Investigate client-side file encryption, key wrapping, encrypted storage and authorized sharing, based on the supplementary project brief.

  1. Complete the analytical preparation below before programming. Show the intermediate mathematical calculations.
  2. Client/server architecture and user registration — complete its numbered steps and record the requested evidence.
  3. Encryption, integrity and secure sharing — complete its numbered steps and record the requested evidence.
  4. Compare observations with the reference checks and submit the required evidence.

Reference check: The genuine recipient recovers the original bytes; modifying the AES-GCM ciphertext fails authentication. The server-side object has no plaintext or raw AES session key.

Model boundary: Fictional educational inputs. Browser algorithms and reference programs; no hardware or live-network measurements. Supplied starter notebooks may be incomplete; trace playback is recorded execution, not arbitrary Python running in browser.

Independent task and submission evidence

2. Client/server architecture and user registration — complete its numbered steps and record the requested evidence. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Scientific concepts and engineering principles

Scientific architecture · EC13 · Optional capstone — Hybrid cryptographic secure storage

Hybrid authenticated encryption — Sender; Storage / transport; Recipient; Generate random AES key / 0>0; Encrypt with AES-GCM / 0>0; Wrap key with recipient RSA-OAEP / 0>2; Send envelope / 0>1; Retrieve and unwrap / 1>2; Verify tag before release / 2>2
Scientific concept map: Client — Generate AES key; AES-GCM — Ciphertext + tag; RSA-OAEP — Wrap key; Storage / transport — Encrypted envelope; Recipient — Unwrap and verify.

Client and server responsibilities

Design a client-side encrypted file service: the client encrypts and decrypts file bytes, while a server stores ciphertext and authenticated metadata. A local GUI or web client can submit an encrypted envelope to a Flask service. A Tkinter interface is optional; the laboratory workstation models the cryptographic workflow rather than a complete hosted application.

Hybrid encryption

Use a random symmetric file key and an authenticated encryption mode such as AES-GCM. Encrypt or wrap the file key with the intended recipient’s RSA-OAEP public key. AES-CBC plus an unkeyed hash is not an authenticated substitute; compare its properties with the authenticated design.

Sharing and integrity

The authorized owner unwraps the file key and wraps it for a verified recipient public key. A wrong key, modified ciphertext or invalid tag must not release plaintext. Test owner access, recipient recovery, nonrecipient rejection and tampered-envelope rejection independently.

Prerequisites: EC01–EC12 recommended.

EC13 engineering diagram
Algorithm structure and data flow. Use the simulation to inspect the corresponding numerical transformations.

Engineering diagrams

Hybrid encryption protects payload and wraps the session key.
Hybrid encryption protects payload and wraps the session key.

Scientific foundations and worked examples

Hybrid encryption architecture

A client generates a fresh symmetric session key, encrypts file bytes using authenticated encryption, and wraps the session key with the authorized recipient public key. The server stores ciphertext, nonce, authentication tag, wrapped key and necessary metadata. The recipient uses the private key to recover the session key, verifies the tag and only then releases plaintext. A secure transport channel does not eliminate the need for authenticated key identity.

Access control and experimental design

Separate authentication (who requests a file) from authorization (which file and actions are allowed). For sharing, wrap the session key independently for each authorized recipient. Removing a recipient does not revoke plaintext or keys they already possess. Evaluate the client/server workflow with an authorized receiver, wrong key, modified ciphertext and unavailable server. Record whether decryption and verification succeed without exposing secrets in logs.

Engineering principles · additional worked teaching example

Hybrid storage protects data with an AEAD data key; an asymmetric mechanism or key wrapping protects the data key. Store nonce, ciphertext and authentication tag; AAD binds metadata. Example a 32-byte payload with a 16-byte tag and 12-byte nonce yields 60 bytes before format and wrapped-key overhead.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

Worked engineering reasoning and boundary conditions

Hybrid secure storage uses a randomly generated content key for authenticated encryption and protected key encapsulation/wrapping for recipients. Verification must precede use. Key management and metadata are part of the security boundary.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · operation pathway

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

Optional capstone — Hybrid cryptographic secure storage: operation pathwayDatalocal disposablefileGeneraterandom content keyProtectAEAD +authenticatedmetadataWraprecipient key;verify beforerecoveryRead the active operation, then inspect the accumulated state.

Step 1 of 4 · Data

Data

Data
local disposable file

Teaching example only; inspect live calculations or real practical evidence separately.

Interactive flashcards

Self-rated study progress is stored locally, not used for official grades.

Browse all explanations
Why hybrid encryption?

Efficient symmetric encryption plus public-key key transport.

What does GCM tag check?

Authenticity of ciphertext and associated data.

What is OAEP for?

Randomized RSA encryption padding.

Why reject before releasing plaintext?

Unauthenticated plaintext may be manipulated.

Why use a hybrid construction?

Symmetric encryption handles bulk data and public-key encryption wraps the session key.

What does AES-GCM provide?

Confidentiality and authenticated integrity.

What is the purpose of RSA-OAEP?

Randomized public-key encryption of small secrets such as session keys.

Where should a private key remain?

With its authorized owner, protected from disclosure.

What does associated data protect?

Unencrypted metadata against undetected modification.

What is an encrypted envelope?

Ciphertext plus nonce, authentication tag, wrapped key and metadata.

How can an authorized recipient receive a session key?

The owner wraps it using the recipient's public key.

What must happen on authentication failure?

Reject the record without releasing plaintext.

Why is an unkeyed SHA digest not enough for authentication?

An adversary can recompute it after modifying content.

What is a negative control for secure sharing?

An unauthorized recipient or modified envelope must fail.

The recipient public key is replaced before key wrapping. Why is encryption alone insufficient?

The session key may be wrapped for an unintended recipient. Verify the identity and authenticity of the public key.

A modified GCM ciphertext arrives. Should plaintext be released before tag verification?

No. The receiver must reject a failed authentication check.

What role does the wrapped key play in the envelope?

It allows the intended private-key holder to recover the symmetric session key without exposing that key in plaintext.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research