paoli needed a way to effectively communicate with his allies , one that assured total privacy , so he adapted a method learned from the moors who , for centuries , had raided the coastline as freebooting pirates .