5 Replies - 400 Views - Last Post: 18 November 2012 - 08:12 AM Rate Topic: -----

#1 sanrooney  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 25-April 11

Encryption & Decryption

Posted 17 November 2012 - 06:37 AM

Hi guys,

I'm doing a project with data encryption and decryption function.
I have done the codes successfully which can encrypt and decrypt the given file.
So now the problem I have is when I encrypt the file and straight way I do the decrypt is works fine
but when I encrypt the file and then close the application and reopen the application and do the
decryption I got an error that says this "padding is invalid and cannot be removed".

Hope someone can help me on this. I have attach my application here check out.

Thanks advance. :helpsmilie:/>/> :bigsmile:/>/>

This post has been edited by sanrooney: 17 November 2012 - 06:43 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Encryption & Decryption

#2 sanrooney  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 25-April 11

Re: Encryption & Decryption

Posted 17 November 2012 - 07:01 AM

I'm not sure my file attached or not..
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6075
  • View blog
  • Posts: 23,540
  • Joined: 23-August 08

Re: Encryption & Decryption

Posted 17 November 2012 - 07:08 AM

Post your code IN CODE TAGS!

:code:
Was This Post Helpful? 0
  • +
  • -

#4 sanrooney  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 25-April 11

Re: Encryption & Decryption

Posted 17 November 2012 - 07:13 AM

It's a lot of files bro.. that's why I try to attach but I don't know the attached or not..
Was This Post Helpful? 0
  • +
  • -

#5 sanrooney  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 25-April 11

Re: Encryption & Decryption

Posted 17 November 2012 - 08:12 AM

Ok This is the one..
Attached File  WindowsFormsApplication2.zip (165.21K)
Number of downloads: 25

This post has been edited by sanrooney: 17 November 2012 - 08:13 AM

Was This Post Helpful? 0
  • +
  • -

#6 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3616
  • View blog
  • Posts: 11,263
  • Joined: 05-May 12

Re: Encryption & Decryption

Posted 18 November 2012 - 08:12 AM

It would help dramatically if you come up with a minimal project that reproduces the problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1