EncryptedModule is an extension of the Module class decorator
function who configures encryption password of the AES-128/256 algorithm. The
encryption algorithm and password would be used by EncryptedRoute and
EncryptedBody to encrypt the request and response bod of the HTTP
protocol.
By using this EncryptedModule decorator function, all of the
Controller controllers configured in the metadata would be
automatically changed to the EncryptedController with the password.
If there're some original EncryptedController decorated classes in the
metadata, their encryption password would be kept.
Therefore, if you're planning to place original EncryptedController
decorated classes in the metadata, I hope them to have different encryption
password from the module level. If not, I recommend you use the
Controller decorator function instead.
In addition, the EncryptedModule supports a convenient dynamic controller
importing function, EncryptedModule.dynamic. If you utilize the
function with directory path of the controller classes, it imports and
configures the controller classes into the Module, automatically.
Encrypted module.
EncryptedModuleis an extension of the Module class decorator function who configures encryption password of the AES-128/256 algorithm. The encryption algorithm and password would be used by EncryptedRoute and EncryptedBody to encrypt the request and response bod of the HTTP protocol.By using this
EncryptedModuledecorator function, all of the Controller controllers configured in the metadata would be automatically changed to the EncryptedController with the password. If there're some original EncryptedController decorated classes in the metadata, their encryption password would be kept.Therefore, if you're planning to place original EncryptedController decorated classes in the metadata, I hope them to have different encryption password from the module level. If not, I recommend you use the Controller decorator function instead.
In addition, the
EncryptedModulesupports a convenient dynamic controller importing function, EncryptedModule.dynamic. If you utilize the function with directory path of the controller classes, it imports and configures the controller classes into theModule, automatically.