Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Encrypt text using java and decrypt using C

Encrypt text using java and decrypt using C

Scheduled Pinned Locked Moved C / C++ / MFC
javaalgorithms
8 Posts 6 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Murugan k
    wrote on last edited by
    #1

    Hi I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP. Thanks

    C A T 3 Replies Last reply
    0
    • M Murugan k

      Hi I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP. Thanks

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Some suggestions: 1. Don't cross post in multiple forums. 2. Don't for the full code ASAP. Members here are not paid to help people, so if you want somebody to provide you with the code ASAP, you'll need to hire somebody. 3. Explain precisely where you are stuck, people here won't provide a fully working solution (for the same reason as point 3). 4. Read the posting guidelines at the top of this message board.

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      N 1 Reply Last reply
      0
      • C Cedric Moonen

        Some suggestions: 1. Don't cross post in multiple forums. 2. Don't for the full code ASAP. Members here are not paid to help people, so if you want somebody to provide you with the code ASAP, you'll need to hire somebody. 3. Explain precisely where you are stuck, people here won't provide a fully working solution (for the same reason as point 3). 4. Read the posting guidelines at the top of this message board.

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        N Offline
        N Offline
        Niklas L
        wrote on last edited by
        #3

        Is your third point some kind of recursive definition? ;P

        home

        M 1 Reply Last reply
        0
        • M Murugan k

          Hi I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP. Thanks

          A Offline
          A Offline
          Aescleal
          wrote on last edited by
          #4

          Have a look at OpenSSL. It supports AES and you should be able to use if from Java and C. If you have problems using it from C then feel free to ask questions about how to use it. I believe there's a JNI wrapper for it as well to save you rolling your own but I've never used it. Oh, and if you do a search for "Gladman" and "AES" you might find another open source implementation of AES. I've never used it but one of my co-workers does in a product. It's lighter weight than OpenSSL and you should be able to compile and link it with your C code. Cheers, Ash

          1 Reply Last reply
          0
          • M Murugan k

            Hi I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP. Thanks

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Murugan k wrote:

            I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP.

            do you know how to write AES alogorithm in C and Java

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            A 1 Reply Last reply
            0
            • N Niklas L

              Is your third point some kind of recursive definition? ;P

              home

              M Offline
              M Offline
              Moak
              wrote on last edited by
              #6

              Nice trick there from Cedric! :)

              Chat in Europe :java: Now with 24% more Twitter

              N 1 Reply Last reply
              0
              • M Moak

                Nice trick there from Cedric! :)

                Chat in Europe :java: Now with 24% more Twitter

                N Offline
                N Offline
                Niklas L
                wrote on last edited by
                #7

                Yeah, took me about 15 minutes before I realized I was reading the same row over and over... (cheeky bastard) :laugh:

                home

                1 Reply Last reply
                0
                • T ThatsAlok

                  Murugan k wrote:

                  I need to encrypt the plan text using AES algorithm in java and decrypt the encrypted text using C.Any please give solution ASAP.

                  do you know how to write AES alogorithm in C and Java

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  A Offline
                  A Offline
                  Aescleal
                  wrote on last edited by
                  #8

                  Have a look at Brian Gladman's implementation. That shows you in balls-aching detail how to implement AES. If I were you I'd just use his or the one in OpenSSL. Cheers, Ash

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups