EncryptedBody is a decorator function getting application/json typed data from
requeset body which has been encrypted by AES-128/256 algorithm. Also,
EncyrptedBody validates the request body data type through
typia ad the validation speed is
maximum 15,000x times faster than class-validator.
For reference, when the request body data is not following the promised type T,
BadRequestException error (status code: 400) would be thrown. Also,
EncryptedRoute decrypts request body using those options.
Encrypted body decorator.
EncryptedBody
is a decorator function gettingapplication/json
typed data from requeset body which has been encrypted by AES-128/256 algorithm. Also,EncyrptedBody
validates the request body data type through typia ad the validation speed is maximum 15,000x times faster thanclass-validator
.For reference, when the request body data is not following the promised type
T
,BadRequestException
error (status code: 400) would be thrown. Also,EncryptedRoute
decrypts request body using those options.