O
Optimus
I would like to know if there is a encryption algorithm that returns
only lowercase encrypted string.
Thanks in advance.
only lowercase encrypted string.
Thanks in advance.
No modern algorithm does this, though many classical algorithms willI would like to know if there is a encryption algorithm that returns
only lowercase encrypted string.
Thanks in advance.
rossum said:No modern algorithm does this, though many classical algorithms will
do so: Ceasar, Playfair, Vigenere etc. These depend on the plaintext
only having letters, no digits.
What may be of more use to you is an encoding such as Base32 which
only uses letters of a single case, though it also includes digits.
See RFC 4648 (http://tools.ietf.org/html/rfc4648) for details.
Encrypt using a modern algorithm (AES/Rijndael) and Base32 encode the
resulting byte stream.
If you really do need just lowercase letters, no digits, then you
could do something like encode the cyphertext as hex and then use a
single letter substitution for the digits: 0 -> m, 1 -> n etc. You
would have to write this yourself.
rossum
rossum said:What may be of more use to you is an encoding such as Base32 which
only uses letters of a single case, though it also includes digits.
JR said:Easy is one thing, meeting the requirement is another.
I prefer the latter.
JR said:Easy is one thing, meeting the requirement is another.
I prefer the latter.
JR said:It depends.
If the requirement is to produce only lower case letters, there are 26 of
them in English. If you also allow the digits you have 36. If you then
disallow four letters, say l, o, s and i, you have 32.
That is the Base32 that I mentioned, letters a to z and digits 2 to 7.Actually, a common variation uses digits and letters but with confusing
characters being equivalent - such as zero and o - and ignoring case.
JR
JR said:It depends.
If the requirement is to produce only lower case letters, there are 26 of
them in English. If you also allow the digits you have 36. If you then
disallow four letters, say l, o, s and i, you have 32.
Ken P said:I actually have this requirnment as well. We are encrypting our URL
using TripDES and its case sensitive alphanumberic string. Now seems
there are email scanning tools that rewrite URLs to all lower case.
I have verified an email that is being sent to an AOL user is the proper
case - when it comes back to us the URL is all lower case. According to
the return headers the email is getting realyed through some
spamscanner.test.aol.com.
I think this method will work..
http://www.eggheadcafe.com/articles/20060427.asp - being this is NOT
encryption rather obfuscation - which is fine for us.. but this
combination of HEX encoding should work fine - I need to test.. but I
should be able to do an upper on the string if it is converted to
lowercase and be off and running.