By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

Rijndael Encryption - CAPS Result

P: n/a
http://www.obviex.com/samples/Encryption.aspx

According to this link, I am using Rijndael Encryption & Decryption
Algorithms, But I want my encrypted strings just CAPS string and just
alphanumeric values ABC...Z and 123...90, no other chars I want, what should
I do ? or what other algos I must use,

Thanks
Nov 16 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Sylvie,

Are you looking for something like base64 encoding?
Encryption/decryption will translate one set of bytes to another set of
bytes.

If you want just an alphanumeric representation of those bytes, you will
have to encode the resulting bytes into base64.

You can use the static ToBase64String method on the Convert class to
convert the byte array to a string which is base64 encoded.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Sylvie" <ss*@sss.sswrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
http://www.obviex.com/samples/Encryption.aspx

According to this link, I am using Rijndael Encryption & Decryption
Algorithms, But I want my encrypted strings just CAPS string and just
alphanumeric values ABC...Z and 123...90, no other chars I want, what
should I do ? or what other algos I must use,

Thanks

Nov 16 '07 #2

P: n/a
Hi Sylvie,
According to this link, I am using Rijndael Encryption & Decryption
Algorithms, But I want my encrypted strings just CAPS string and just
alphanumeric values ABC...Z and 123...90, no other chars I want, what
should I do ? or what other algos I must use,
since Rijndael and familliar are very strong encryption algorithms and
they work in the managed (and in general) with byte arrays/streams
you can use anything to encrypt, what can be transformed to a byte
array/stream, no matter what the original data was e.g. binary files,
text, images, etc,...it is up to you whatever you want to encrypt or
decrypt.

Depending on the nature of your application and your project
or even your intention you have to decide between speed and
security where i would recommend always security since we today
have a very powerfull range of comupters and e.g. processors
are very powerfull today and there is a lot of memory we are free
to use.

There are less powerfull algorithms for encryption/decryption of
data but if your data s confidential, theres is no reason why you
should use less secure ones!

Here you will find a (small) list of algorithms for cryptographic tasks.
This list is not nearly complete, due to the fact that there are endless
implementations of security out there in the world. Even i wrote some
cryptographic algos for special areas of security and they are VERY
different from other common implementations:

http://en.wikipedia.org/wiki/List_of...hic_algorithms
Cheers,...

Kerem

---------
New Open Source Tools from me:
Calculate MD5 or SHA1 Hash for Files!
KHash Tools 1.0 Englisch:
http://download.chip.eu/de/KHash-Tools-1.0_1317168.html
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
ke*****@arcor.de

Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2

Latest Open-Source Projects: http://entwicklung.junetz.de
Sign my guestbook: http://entwicklung.junetz.de/guestbook/

-----------------------
"This reply is provided as is, without warranty express or implied."
Nov 16 '07 #3

P: n/a
On Fri, 16 Nov 2007 16:04:06 +0200, "Sylvie" <ss*@sss.sswrote:
>http://www.obviex.com/samples/Encryption.aspx

According to this link, I am using Rijndael Encryption & Decryption
Algorithms, But I want my encrypted strings just CAPS string and just
alphanumeric values ABC...Z and 123...90, no other chars I want, what should
I do ? or what other algos I must use,

Thanks
Using Rijndael will give you output of effectively random bytes - that
is one of the properties of a secure cypher. You have two options: a)
convert the output into a different format using a restricted
character set. b) Use a less secure encryption mechanism that only
produces a restricted character set.

For a) you can use Base64: 'a'-'z', 'A'-'Z', '0'-'9', '+', '/', '=' or
Base32: 'A'-'Z', '2'-'7', '='. If you want a very restricted
character set, just use Hex (= Base16): '0'-'9', 'A'-'F'.

For details see RFC 3548: http://www.faqs.org/rfcs/rfc3548.html

Option b) is less secure - google "Vigenere" for some examples. Be
aware that Vigenere cyphers are broken and less secure than Rijndael.
They are fine for keeping secrets from your kid sister, but not for
anything serious. I would suggest option a).

rossum

Nov 16 '07 #4

P: n/a
Hi rossum,
They are fine for keeping secrets from your kid sister, but not for
anything serious. I would suggest option a).
my sister is a exception. She is a mathematican and her areas of
work are number theory and cryptography. She helped me a lot
in security and math, even i am not that bad in that scope,...

Her favorite phrase: "You just need time and computing power, rest
is up to your algorithmical imagination..."

Cheers,...

Kerem

---------
New Open Source Tools from me:
Calculate MD5 or SHA1 Hash for Files!
KHash Tools 1.0 Englisch:
http://download.chip.eu/de/KHash-Tools-1.0_1317168.html
http://entwicklung.junetz.de/project...ls%20v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
ke*****@arcor.de

Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2

Latest Open-Source Projects: http://entwicklung.junetz.de
Sign my guestbook: http://entwicklung.junetz.de/guestbook/

-----------------------
"This reply is provided as is, without warranty express or implied."
Nov 16 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.