this.me / Tests / Security

Secret Wrapped for a Recipient

A secret can be wrapped for one recipient's P-256 public key. Only the matching private key opens it. Another key, or a change to the ciphertext or the tag, makes unwrap fail.

Every value below is computed right now, in this page, by the .me kernel. Nothing is pasted in. The cases are the ones in Typescript/tests/contracts/wrapped-secret.contract.test.mjs and Typescript/tests/contracts/wrapped-secret-negative.contract.test.mjs, run directly with node; they are not part of npm test.

RUNNINGLoading kernel…

Setup and helpers

A page-only check used in N2 and N3 to show whether a "tampered" value really changed any bytes.

Show code

Who can unwrap

Every unwrap attempted on this page. P-cases are wrapped-secret.contract.test.mjs, N-cases are wrapped-secret-negative.contract.test.mjs.

fails closed, as the test expectsopens, as the test expectsdiffers from what the test expects

Everyone else fails