Encrypted router decorator functions.

EncryptedRoute is a module containing router decorator functions which encrypts response body data through AES-128/256 encryption. Furthermore, they can boost up JSON string conversion speed about 50x times faster than class-transformer, even type safe through typia.

For reference, if you try to invalid data that is not following the promised type T, 500 internal server error would be thrown. Also, as EncryptedRoute composes JSON string through typia.assertStringify<T>() function, it is not possible to modify response data through interceptors.

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

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

Functions

Delete
Get
Patch
Post
Put
setValidateErrorLogger

References

IValidateErrorLog → TypedRoute.IValidateErrorLog