The shared secret is either shared before parties start to communicate ; in this case it can also be called a pre-shared key . The shared secret is either shared beforehand between the communicating parties , in which case it can also be called a pre-shared key .