Home > database >  How to use powershell to reorder a string to obfuscate a hidden message?
How to use powershell to reorder a string to obfuscate a hidden message?

Time:05-22

Just for fun a friend and I are trying to find a creative way to send coded messages to eachother using steganography.I stumbled upon doing something like whats shown below and I have been struggling trying to write a function to automate the process.

this is a secret message

can be turned into:

("{2}{1}{0}{3}"-f'ecret m','is a s','this ','essage')

splitting the string and using reordering seems to be the way to go.

  • So the string needs to be split in random splits between 5-10 characters .

  • The index of the original positions need to be saved

  • the splits need to be swapped around

  • and the new indexes sorted as to reorder the message properly

i've just really been struggling help is appreciated

CodePudding user response:

Just for fun ....

  • Related