Text this: Role of Nonlocality and Counterfactuality in Quantum Cryptography