In cryptography , a pre-shared key or PSK is a shared secret which was previously shared between the two parties using some secure channel before it is used . In cryptography , a pre-shared key or PSK is a shared secret which was previously shared between the two parties using some secure channel before it needs to be used .