|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
bad encryptionhello experts
i'm new to encryption so please... i think i've tried every piece of code out there that claims to encrypt/decrypt files the common thing about them all(and that is strange...) is that the proccess changes the file (in fact it adds 16 bytes to it, no matter if i encrypt or decrypt) that of course is un bearable can anyone point me to the problem? last sample used is with a RijndaelManaged stream, for all that matters thanx a lot Erez. Hi
I've not encountered this, so perhaps others will be able to tell you why it is happening. You may find it easier to use the cryptography application block that is part of the Microsoft Enterprise Library Application Blocks. Here is a description of the best practice that they offer, and also instructions for its use. http://www.pnplive.com/Slides/22MAR2005%20Crypto%20Block%20Webcast.ppt I've recommended this for for clients when implementing symmetric encryption. Hope this helps Chris Seary Show quoteHide quote "Erez Mor" wrote: > hello experts > i'm new to encryption so please... > i think i've tried every piece of code out there that claims to > encrypt/decrypt files > the common thing about them all(and that is strange...) > is that the proccess changes the file (in fact it adds 16 bytes to it, no > matter if i encrypt or decrypt) > that of course is un bearable > can anyone point me to the problem? last sample used is with a > RijndaelManaged stream, for all that matters > thanx a lot > Erez. the 16 bytes most probably come from the padding. search for PKCS#7 - this
describes the algorithm in detail. why is this unbearable? --------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Hi > > I've not encountered this, so perhaps others will be able to tell you > why it is happening. > > You may find it easier to use the cryptography application block that > is part of the Microsoft Enterprise Library Application Blocks. Here > is a description of the best practice that they offer, and also > instructions for its use. > > http://www.pnplive.com/Slides/22MAR2005%20Crypto%20Block%20Webcast.ppt > > I've recommended this for for clients when implementing symmetric > encryption. > > Hope this helps > > Chris Seary > > "Erez Mor" wrote: > >> hello experts >> i'm new to encryption so please... >> i think i've tried every piece of code out there that claims to >> encrypt/decrypt files >> the common thing about them all(and that is strange...) >> is that the proccess changes the file (in fact it adds 16 bytes to >> it, no >> matter if i encrypt or decrypt) >> that of course is un bearable >> can anyone point me to the problem? last sample used is with a >> RijndaelManaged stream, for all that matters >> thanx a lot >> Erez.
Online Only Digital Signature
Windows Security Roles Role based security flaw? Login failed for user ''. The user is not associated with a trusted SQL Server connection. Digital Signaturing Least Privilege User Accounts GSSAPI bindings for C#/.NET How do I configure the CA in win 2003 server? Best option for file encryption? are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient. |
|||||||||||||||||||||||