Exploring web security through XSS, CSRF, SQL injection, password breaking and database encryption using API method