Thread: Encrypting and decryption text in/out of wav file

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    4

    Encrypting and decryption text in/out of wav file

    hey guys,

    My task is to create two files.

    The first file is meant to encrypt some text into an audio file, making it as simple or as hard as i want. The second file is then used to decrypt the text from the audio file.

    My problem is that i have tried to read up on it and understand how to do it but the problem is, i don't have a clue where to start. I don't know what to include whether its for statements or arrays or if statements etc. I have got to the point of loading the wav file so i can see all of its information. After that i'm not sure how i am meant to put the text into the audio file.

    The important thing about this post is that i dont want someone to just give me the answer because i wont learn from that. I want to be pointed in the right direction etc so i can learn how to do it.


    thank you

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    You're talking about steganography, not encryption.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    4
    yes sorry that's what i mean, the teachers just kept saying name the files encrypt and decrypt sorry.

  4. #4
    Registered User
    Join Date
    Oct 2012
    Posts
    99
    Quote Originally Posted by Carlos1994 View Post
    I have got to the point of loading the wav file so i can see all of its information.
    You should post some of this information so we can see how it might be adjusted to include hidden data.

  5. #5
    Registered User
    Join Date
    Dec 2012
    Posts
    4
    cant compile to see it at home, will have to do that tomorrow when i go back to compile it

  6. #6
    Registered User
    Join Date
    Dec 2012
    Posts
    4
    is there any tips on how to do steganography??

  7. #7
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    First I would read about the WAVE file format, which has many resources online

    https://ccrma.stanford.edu/courses/4...ts/WaveFormat/

    For hiding information in the file, you'll have to manipulate the format in such a way that the result is still a legal file but has some "extra" information somewhere. Maybe try manipulating the ChunkSize. You'll have to experiment to find the best approach. Also make sure the resulting file is usable in all popular applications, otherwise it defeats the point of "hiding" information there.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Quote Originally Posted by Carlos1994 View Post
    is there any tips on how to do steganography??
    You mean like actually reading through the link you posted?

    > I want to be pointed in the right direction etc so i can learn how to do it.
    Yes, the clues are there.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Registered User
    Join Date
    Oct 2012
    Posts
    99
    This sounds like a fun assignment, quite frankly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# decryption xml file.
    By darren78 in forum C# Programming
    Replies: 1
    Last Post: 09-07-2010, 02:09 AM
  2. Replies: 12
    Last Post: 07-15-2010, 04:04 AM
  3. Encrypting/Decrypting file holding binary data
    By wayne08 in forum C Programming
    Replies: 9
    Last Post: 04-21-2010, 01:16 AM
  4. Encrypting a txt file
    By MSkiLLz in forum C Programming
    Replies: 2
    Last Post: 03-24-2009, 05:59 PM
  5. Encrypting text file with ASCII hex
    By supaben34 in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2005, 06:35 PM