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. Data encryption

Data encryption

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmssecurityhelpquestion
8 Posts 3 Posters 2 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.
  • C Offline
    C Offline
    Code o mat
    wrote on last edited by
    #1

    Hello people! If i want to encrypt some data based on a key (password) and want to keep the encryption as irreversible without the key as possible (yeah, i know, that's the point), which algorithm would you recommend? The data itself would mostly be text and only 1-2 megabytes tops, so if the choice is between safer or faster, i'd choose safer. Thanks for your oppinions.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

    B 1 Reply Last reply
    0
    • C Code o mat

      Hello people! If i want to encrypt some data based on a key (password) and want to keep the encryption as irreversible without the key as possible (yeah, i know, that's the point), which algorithm would you recommend? The data itself would mostly be text and only 1-2 megabytes tops, so if the choice is between safer or faster, i'd choose safer. Thanks for your oppinions.

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

      B Offline
      B Offline
      BIJU Manjeri
      wrote on last edited by
      #2

      For encrypting that much data (1-2 MB) you must use any symmetric algorithms like RC2, RC4, or Data Encryption Standard (DES)

      C 1 Reply Last reply
      0
      • B BIJU Manjeri

        For encrypting that much data (1-2 MB) you must use any symmetric algorithms like RC2, RC4, or Data Encryption Standard (DES)

        C Offline
        C Offline
        Code o mat
        wrote on last edited by
        #3

        Thank you, i will check these out.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

        C 1 Reply Last reply
        0
        • C Code o mat

          Thank you, i will check these out.

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

          C Offline
          C Offline
          Covean
          wrote on last edited by
          #4

          Don't use DES any more! Its not safe because the key is only 56 bit long. You can "hack" it, with some good machines in under a day! Use AES (128-256 bit) (Advanced Encryption Standard) or maybe, if AES not available, 3DES instead.

          Greetings Covean

          C 1 Reply Last reply
          0
          • C Covean

            Don't use DES any more! Its not safe because the key is only 56 bit long. You can "hack" it, with some good machines in under a day! Use AES (128-256 bit) (Advanced Encryption Standard) or maybe, if AES not available, 3DES instead.

            Greetings Covean

            C Offline
            C Offline
            Code o mat
            wrote on last edited by
            #5

            Btw are these freely usable?

            > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

            C 1 Reply Last reply
            0
            • C Code o mat

              Btw are these freely usable?

              > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

              C Offline
              C Offline
              Covean
              wrote on last edited by
              #6

              In .NET there are some crypto provider you can use for "free" for example 3DES / TripleDES. .NET 3.5 also introduced AES. I don't know if there are also libs for C++ but I can't imagine that there aren't some in the internet (for free). If you don't find anything about AES look for Rijndael its the same algorithm.

              Greetings Covean

              C 1 Reply Last reply
              0
              • C Covean

                In .NET there are some crypto provider you can use for "free" for example 3DES / TripleDES. .NET 3.5 also introduced AES. I don't know if there are also libs for C++ but I can't imagine that there aren't some in the internet (for free). If you don't find anything about AES look for Rijndael its the same algorithm.

                Greetings Covean

                C Offline
                C Offline
                Code o mat
                wrote on last edited by
                #7

                Thank you very much.

                > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

                C 1 Reply Last reply
                0
                • C Code o mat

                  Thank you very much.

                  > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

                  C Offline
                  C Offline
                  Covean
                  wrote on last edited by
                  #8

                  You are welcome. :)

                  Greetings Covean

                  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