Forum Stats

  • 3,780,567 Users
  • 2,254,410 Discussions
  • 7,879,386 Comments

Discussions

Encrypting sound files

843811
843811 Member Posts: 49,851
Hello Every body,
We are building a application, in which we want to encrpt the sound files i.e. (.wav) files initially. When we are going to play those files we will decrypt it and play.................any suggestion how is it possible
in as best as possible.
Vinay Talwar
[email protected]

Comments

  • 843811
    843811 Member Posts: 49,851
    there are two types of encryption/decryption algos possible.
    basically, the public key and the priate key algos.
    depending on your app you need to decide the type first.
    Then you can decide which one to implement.
    you can use blowfish algo.
    It is a good private key algo to use.
    If you want the code in java mail me back.
    ...supriya.
  • 843811
    843811 Member Posts: 49,851
    there are two types of encryption/decryption algos possible.
    basically, the public key and the priate key algos.
    depending on your app you need to decide the type first.
    Then you can decide which one to implement.
    you can use blowfish algo.
    It is a good private key algo to use.
    If you want the code in java, mail me back.
    ...supriya.
  • 843811
    843811 Member Posts: 49,851
    I've never really tried to play sound in java, but I've worked with lots of encryption/decryption.

    If you can play sound by passing the playback part and InputStream then I would suggest using CipherInputStream. This acts as a decorator for InputStreams that decrypts data from an InputStream and hands back the decrypted message. For example:

    encrypted file inputstream--->cipher input stream--->wav file

    Also there is a CipherOutputStream which is great for encrypting if your target is an outputstream:

    wav file-->cipher output stream--->file output stream

    This will let you send the files over any inputstream and decrypt/encrypt them as you like.

    charlie
This discussion has been closed.