Data privacy regulations like the EU GDPR allow the use of hashing techniques to anonymize data that may contain personal information. However, hashing is well-known to destroy any possibility of performing analytics. Homomorphic crypto-systems allow computing analytics over encrypted data, but cannot guarantee privacy compliance without being coupled with specific privacy-preservation provisions. In this work, we present a novel distance-preserving hashing scheme supporting both regulatory compliance and collaborative analytics. Our scheme achieves regulatory compliance by relying on standard cryptographic hashes while preserving a controllable notion of distance between data points.