Use crypto:hash/2 instead of deprecated crypto functions
Use ssl:sslsocket instead of sslsocket{}