What is HTTPS used for?

HTTPS encrypts the data being sent between a web server and a web browser, making it more difficult for hackers to intercept or steal sensitive information such as login credentials or credit card numbers. Websites that use HTTPS have a URL that begins with “https” instead of “http” and often displays a padlock icon in the browser to indicate that the connection is secure.

Source