Rijndael Encryption - CAPS Result

  • Thread starter Thread starter Sylvie
  • Start date Start date
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.
 
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_algorithms#Cryptographic_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ü
(e-mail address removed)

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/
 
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
 
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/projects/opensource/khashtools/khashtools v.1.0.zip
---------

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
(e-mail address removed)

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/
 
Back
Top