a cryptography method based on pre-shared key