Closed Sandhya1708 closed 3 years ago
Hi this is my first time contributing, i would love to give it a shot!
Is the image a path to the image file?
Well, the code I wrote takes the image as input.
I have not yet added the code into this page. I wanted to contribute , so I had put up this issue . This is my first time to contribute too.
def encrypt_and_hide(text, image): public_key, private_key = rsa.newkeys(512)
encMessage = rsa.encrypt(text.encode(), public_key)
with open(image, 'ab') as f:
f.write(encMessage)
well this is the little function i wrote for your problem, tell me if it works for you
Script Title - Image Steganography
Brief - When we give an image and a message as an input , the message given would be encrypted twice ,i.e., the message is encrypted and a cypher text is obtained. The cypher text is then encrypted into the edge of the image.
Instructions
Programming Language
Happy Coding