OpenSSL would take care of the encrypted connection, prepared statements and a standard method similar to HTMLSpecialChars() (from php) would take care of first and second order SQL injection, and I could take care of Brute force access by forcing a time out after x attempts for y minutes and/or...