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#
  4. C# code to encrypt color image

C# code to encrypt color image

Scheduled Pinned Locked Moved C#
csharpalgorithmssecuritycryptographyhelp
4 Posts 4 Posters 0 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
    maheshwari vetri
    wrote on last edited by
    #1

    i have done the encryption for black and white images but the processing time is high as the size increases.i want a help to lower the process time. i like to know how to modify for color images.i have done the encryption using the base paper"A hash based image encryption algorithm" from a journal published by Elsevier

    M L C 3 Replies Last reply
    0
    • M maheshwari vetri

      i have done the encryption for black and white images but the processing time is high as the size increases.i want a help to lower the process time. i like to know how to modify for color images.i have done the encryption using the base paper"A hash based image encryption algorithm" from a journal published by Elsevier

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      Why would a colour image be any different from black and white? (in terms of how you process it) Also, depending on format of image color and black and white may be the same data size More info on you code please!!!

      Life goes very fast. Tomorrow, today is already yesterday.

      1 Reply Last reply
      0
      • M maheshwari vetri

        i have done the encryption for black and white images but the processing time is high as the size increases.i want a help to lower the process time. i like to know how to modify for color images.i have done the encryption using the base paper"A hash based image encryption algorithm" from a journal published by Elsevier

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        you should implement encryption on either a file or a data stream, that would allow you to encrypt just anything, and performance would only depend on amount of data, nothing else. Whether it is a color image, a B/W image, an EXE file, ... it does not matter. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        1 Reply Last reply
        0
        • M maheshwari vetri

          i have done the encryption for black and white images but the processing time is high as the size increases.i want a help to lower the process time. i like to know how to modify for color images.i have done the encryption using the base paper"A hash based image encryption algorithm" from a journal published by Elsevier

          C Offline
          C Offline
          Chris Trelawny Ross
          wrote on last edited by
          #4

          In addition to Luc's suggestion of encrypting off a file stream, have you considered compressing before encrypting? Assuming that your images are not JPG (or some other format that is already compressed) you might get a major benefit from compression.

          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