Advertisement
krismanohar

Untitled

Apr 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. def generateStegoImage(theImage, theSecret, theConfig):
  2.    
  3.    markedPixelData = Util.createBlankImage(theImage.width,theImage.height)
  4.    theStegoImage = Image(markedPixelData,theImage.width,theImage.height)
  5.  
  6.    bucketList = generateListOfBSizedBucketsContainingSbizedSubBlocksFromImage(theImage, theConfig)
  7.  
  8.    for bucket in bucketList:
  9.        if theSecret.hasMoreBitsToEmbed():
  10.            bucket.embedSecretBitsIntoPixelBlock(theSecret, theConfig, )
  11.  
  12.        bucket.writePixelBlockToImage(theStegoImage)
  13.  
  14.    return theStegoImage, theSecret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement