modular shared secret so it can be used for private key as well as AES