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. Web Development
  3. ASP.NET
  4. Encrypt and Decrypt Excel columns

Encrypt and Decrypt Excel columns

Scheduled Pinned Locked Moved ASP.NET
toolscomtestingquestion
2 Posts 2 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.
  • P Offline
    P Offline
    padmanabhan N
    wrote on last edited by
    #1

    Experts, I have a excel sheet which has 7 lakhs records in which password has been encrypted. I have to decrypt the password column and find the passord whose length is greater than 7. I have created encrypt and decrypt methods and the way to find the length of the password ---- ---- ---- OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Sheet1$] where len(password) < 7", oledbConn); ---- ---- ---- My requirement is, is there any way to decrypt the whole passoword column or i have to loop through all the cells one by one.

    Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

    T 1 Reply Last reply
    0
    • P padmanabhan N

      Experts, I have a excel sheet which has 7 lakhs records in which password has been encrypted. I have to decrypt the password column and find the passord whose length is greater than 7. I have created encrypt and decrypt methods and the way to find the length of the password ---- ---- ---- OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Sheet1$] where len(password) < 7", oledbConn); ---- ---- ---- My requirement is, is there any way to decrypt the whole passoword column or i have to loop through all the cells one by one.

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      One by one. Each piece of data is encrypted separately so it needs to be decrypted separately. If you have a piece of data that when encrypted turns into 12345 and another piece of data that turns into 67890 trying to decrypt 1234567890 would not give you the two original pieces of data (unless you are using a really horrible encryption method like ROT13). It's like if you took a zip file and chopped it in half, you aren't going to be able to unzip either piece by itself.

      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