A Cryptographic Approach to Quantum Metrology