Classical cryptography in the quantum realm