The encryption principle of AS2 protocol is as follows:
First of all, the message can (but not necessarily) ensure the reliability of the receiver by adding a digital signature; ?
In addition, it is possible (but not necessary) to encrypt the message itself and then transmit it to ensure the security during transmission.
Note: If HTTPS is adopted, another layer of protection will be added.
I hope it helps you.