EncryptedRoute is a module containing router decorator functions which
encrypts response body data through AES-128/192/256 encryption after
serializing it with a typia function
generated from the declared return type.
The default assert serializer rejects a response outside the declared type
with a 500 error. The configured stringify mode chooses the validation policy
before encryption; validate.log logs failures and serializes the original
value. Interceptors running afterwards receive ciphertext.
contracts/common.md#principled-implementation Each route method decorates Nest's router decorator with an interceptor that serializes the value as the transform chose, encrypts it with the password of the controller or module, and answers text/plain on success only, so an error keeps its own JSON type.
Evidence
contracts/common.md#clear-and-simple-design One generator function creates the five HTTP-method decorators, and the interceptor and the router table are module-private.
Evidence
contracts/common.md#prohibited-implementation-shortcuts The password lookup and the serializer come from shared modules; the loop after the namespace copies the marker properties of typia's stringify functions onto the five decorators as the transform expects, which mutates only these exported functions.
Evidence
contracts/common.md#meaningful-documentation The comment documents the decorator family and its password requirement.
Evidence Exclude
contracts/portability.md#os-neutral-implementation Route paths and serialized ciphertext are HTTP protocol values; response interception does not access native files or launch a process.
Encrypted router decorator functions.
EncryptedRouteis a module containing router decorator functions which encrypts response body data through AES-128/192/256 encryption after serializing it with a typia function generated from the declared return type.The default assert serializer rejects a response outside the declared type with a 500 error. The configured stringify mode chooses the validation policy before encryption;
validate.loglogs failures and serializes the original value. Interceptors running afterwards receive ciphertext.Author
Jeongho Nam - https://github.com/samchon
Evidence
contracts/common.md#principled-implementation Each route method decorates Nest's router decorator with an interceptor that serializes the value as the transform chose, encrypts it with the password of the controller or module, and answers
text/plainon success only, so an error keeps its own JSON type.Evidence
contracts/common.md#clear-and-simple-design One generator function creates the five HTTP-method decorators, and the interceptor and the router table are module-private.
Evidence
contracts/common.md#prohibited-implementation-shortcuts The password lookup and the serializer come from shared modules; the loop after the namespace copies the marker properties of typia's stringify functions onto the five decorators as the transform expects, which mutates only these exported functions.
Evidence
contracts/common.md#meaningful-documentation The comment documents the decorator family and its password requirement.
Evidence Exclude
contracts/portability.md#os-neutral-implementation Route paths and serialized ciphertext are HTTP protocol values; response interception does not access native files or launch a process.