improved crypto algorithm