Skip to main content
. 2021 Dec 8;23(12):1650. doi: 10.3390/e23121650
Algorithm 3 Watermark encryption.
  • Require: 

    Watermark (W) of size P×Q

  • Ensure: 

    Encrypted watermark vectors Vodd1andVeven1 of size P×Q/2, Rkey, PRKey (P×Q /2)

  • 1:

    Partition W into even (Veven) and odd (Vodd) position pixel vectors.

  • 2:

    Generate 8-bit binary intermediate key (IKB).

  • 3:

    Generate 128 bit Rkey by hashing (IKB) using MD-5.

  • 4:

    Generate PRKey (( P×Q)/2) from Rkey using Algorithm 4.

  • 5:

    Shuffle VoddandVeven using PRKey to get the encrypted vectors Vodd1andVeven1.