Documentation
    Preparing search index...

    Namespace EncryptedRoute

    Encrypted router decorator functions.

    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.

    • AES-128/192/256
    • CBC mode
    • PKCS #5 Padding
    • Base64 Encoding

    Jeongho Nam - https://github.com/samchon

    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.

    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.

    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.

    contracts/common.md#meaningful-documentation The comment documents the decorator family and its password requirement.

    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.

    Delete
    Get
    Patch
    Post
    Put
    setValidateErrorLogger
    IValidateErrorLog → TypedRoute.IValidateErrorLog