As we are aware, encryption helps keep data confidential; it plays an important role in web application security as well. Both encryption of data at rest and encryption of data in transit have to be considered while building a secure web application.