QB64 Phoenix Edition
Embed Text - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Prolific Programmers (https://staging.qb64phoenix.com/forumdisplay.php?fid=26)
+---- Forum: SMcNeill (https://staging.qb64phoenix.com/forumdisplay.php?fid=29)
+---- Thread: Embed Text (/showthread.php?tid=1480)



Embed Text - SMcNeill - 02-17-2023

An old routine which I found on my drive, which showcases how to embed text into an image and hide it from most folks prying eyes.


.7z   EmbedText.7z (Size: 1.1 MB / Downloads: 33) <-- Grab the archive here, extract, and run with "OUTPUT EXE TO SOURCE FOLDER" enabled in the run menu.  Smile

What this does, breaks down to these steps:

1) It loads an image for us.
2) It then embeds text into the image, without disturbing the image in any way noticeable to you.  It'll display it on the screen for you to stare at in awe at the sheer lack of text upon it.
3) It then decrypts that text back off from that image and puts it onto a blank canvas, to display for you to stare at in awe, just so you can see that the process here actually works.

Hidden text in images!

I use this all the time for photos and such, to embed names, dates, places, occasions, and whatnot into the image itself, so I can just draw that info out anytime I ever want in the future -- and it still won't be visible for the general public to ever notice.  Smile


RE: Embed Text - TerryRitchie - 02-17-2023

(02-17-2023, 02:43 AM)SMcNeill Wrote: An old routine which I found on my drive, which showcases how to embed text into an image and hide it from most folks prying eyes.

<-- Grab the archive here, extract, and run with "OUTPUT EXE TO SOURCE FOLDER" enabled in the run menu.  Smile

What this does, breaks down to these steps:

1) It loads an image for us.
2) It then embeds text into the image, without disturbing the image in any way noticeable to you.  It'll display it on the screen for you to stare at in awe at the sheer lack of text upon it.
3) It then decrypts that text back off from that image and puts it onto a blank canvas, to display for you to stare at in awe, just so you can see that the process here actually works.

Hidden text in images!

I use this all the time for photos and such, to embed names, dates, places, occasions, and whatnot into the image itself, so I can just draw that info out anytime I ever want in the future -- and it still won't be visible for the general public to ever notice.  Smile

This is called steganography  https://en.wikipedia.org/wiki/Steganography
[url=https://en.wikipedia.org/wiki/Steganography][/url]
Spy vs Spy stuff. Cool.


RE: Embed Text - Petr - 02-19-2023

That's a nice idea! Thanks for sharing.