Objectmix
Tags Register Mark Forums Read

Rijndael encryption - can I supply my own encryption key? : DOTNET

This is a discussion on Rijndael encryption - can I supply my own encryption key? within the DOTNET forums in Framework and Interface Programming category; The 2.0 Framework SDK only has examples where the Rijndael class instance provides the key. I've tried setting my own key value, making sure my key length matches the KeySize property of my Rijndael instance. I always get "invalid key". Am I misunderstanding the concept - if I don't set and keep my own key, how will I be able to decrypt later? Any ideas or example would be much appreciated. RJ...


Object Mix > Framework and Interface Programming > DOTNET > Rijndael encryption - can I supply my own encryption key?

DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items

Reply

 

LinkBack Thread Tools
  #1  
Old 08-21-2007, 08:05 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Rijndael encryption - can I supply my own encryption key?

The 2.0 Framework SDK only has examples where the Rijndael class instance
provides the key. I've tried setting my own key value, making sure my key
length matches the KeySize property of my Rijndael instance. I always get
"invalid key". Am I misunderstanding the concept - if I don't set and keep
my own key, how will I be able to decrypt later? Any ideas or example would
be much appreciated.


RJ


  #2  
Old 08-21-2007, 05:49 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Rijndael encryption - can I supply my own encryption key?

If I remember correctly, the key needs to be a byte array - might want to
check thats what your providing.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"RJ" <postonly@postonly.net> wrote in message
news:%236qieP$4HHA.5164@TK2MSFTNGP05.phx.gbl...
> The 2.0 Framework SDK only has examples where the Rijndael class instance
> provides the key. I've tried setting my own key value, making sure my key
> length matches the KeySize property of my Rijndael instance. I always get
> "invalid key". Am I misunderstanding the concept - if I don't set and
> keep my own key, how will I be able to decrypt later? Any ideas or example
> would be much appreciated.
>
>
> RJ
>



Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
C# Rijndael encryption. When decrypting I get junk data in the firstblock usenet CSharp 4 12-11-2007 06:39 AM
Encryption via C# Code vs. SQL Native Encryption usenet CSharp 0 11-28-2007 05:09 PM
Rijndael Encryption - CAPS Result usenet CSharp 4 11-16-2007 12:17 PM
ZLIB compression and Rijndael encryption usenet Clarion 1 01-09-2005 07:13 PM
Rijndael Encryption usenet Commerce server 1 09-30-2004 06:21 AM


All times are GMT -5. The time now is 03:32 PM.

Managed by Infnx Pvt Ltd.