From what I've read SHA-2 is not secure and you need to use stronger encryption. I have seen that in PHP you can use password_hash()
.
Would the output of that function be enough encryption?
From what I've read SHA-2 is not secure and you need to use stronger encryption. I have seen that in PHP you can use password_hash()
.
Would the output of that function be enough encryption?
I have a google map where I can put a marker, drag it and with it goes a circle which is the search radius.
My problem is that if I click inside the radius, it doesn't call the event that makes the marker move to the pointer position, since the radius is above it.
What can I do so that the circle is visible but not affected by clicks?
var pos = {
lat: latitud,
lng: longitud
};
map = new google.maps.Map(document.getElementById('map'), {
center: pos,
zoom: 6
});
marcador = new google.maps.Marker({
map: map,
draggable: true,
animation: google.maps.Animation.DROP
});
marcador.addListener('click', toggleBounce);
centerMarkerMap();
circulo = new google.maps.Circle({
strokeColor: '#44a373',
strokeOpacity: 0.5,
strokeWeight: 1,
fillColor: '#44a373',
fillOpacity: 0.25,
map: map
});
circulo.setRadius(parseInt(inpRadius.value) * 1000);
circulo.bindTo('center', marcador, 'position');
//Evento del mapa que crea los marcadores al hacer click
google.maps.event.addListener(map, 'click', function (event) {
marcador.setMap(null);
circulo.setMap(null);
marcador = new google.maps.Marker({
map: map,
draggable: true,
position: event.latLng,
animation: google.maps.Animation.DROP
});
marcador.addListener('click', toggleBounce);
estandarizarPos(event.latLng);
google.maps.event.addListener(marcador, 'dragend', function () {
estandarizarPos(marcador.getPosition());
});
circulo = new google.maps.Circle({
strokeColor: '#44a373',
strokeOpacity: 0.5,
strokeWeight: 1,
fillColor: '#44a373',
fillOpacity: 0.25,
map: map
});
circulo.setRadius(parseInt(inpRadius.value) * 1000);
circulo.bindTo('center', marcador, 'position');
});
google.maps.event.addListener(marcador, 'dragend', function () {
estandarizarPos(marcador.getPosition());
});