A Joint Digital Watermarking and Encryption Method