Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9052
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Simple alphanumeric "encryption"? |
| Date | 2011-10-20 13:32 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <4811a7lih422b903mhsv0s1clhrrba0dv2@4ax.com> (permalink) |
| References | <S8idnWT1OekbSwbTnZ2dnUVZ_q-dnZ2d@westnet.com.au> |
On Mon, 17 Oct 2011 18:16:48 +1100, "Qu0ll" <Qu0llSixFour@gmail.com> wrote, quoted or indirectly quoted someone who said : >I need to be able to encrypt/code an arbitrary string of up to about 50 >alphanumeric characters into a string that also contains only alphanumeric >characters. All of the encryption algorithms I have looked result in >strings with non-ASCII characters in them (when the resulting bytes are >turned into a string) which is not suitable. > >Is there a simple way to do this? It must be able to successfully be >decrypted as well but doesn't need to be very sophisticated or extremely >secure. Cheapie encryption XOR with a password then XORs again to get it back. You need to armour the encrypted bytes. See http://mindprod.com/jgloss/armour.html for various techniques. The simplest is convert to hex. you have to strip the armour before decryption. -- Roedy Green Canadian Mind Products http://mindprod.com It should not be considered an error when the user starts something already started or stops something already stopped. This applies to browsers, services, editors... It is inexcusable to punish the user by requiring some elaborate sequence to atone, e.g. open the task editor, find and kill some processes.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Simple alphanumeric "encryption"? "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-17 18:16 +1100
Re: Simple alphanumeric "encryption"? Arne Vajhøj <arne@vajhoej.dk> - 2011-10-17 08:13 -0400
Re: Simple alphanumeric "encryption"? Travers Naran <tnaran@gmail.com> - 2011-10-18 06:47 -0700
Re: Simple alphanumeric "encryption"? David Segall <david@address.invalid> - 2011-10-20 00:36 +1100
Re: Simple alphanumeric "encryption"? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-10-17 12:27 +0000
Re: Simple alphanumeric "encryption"? Tom Anderson <twic@urchin.earth.li> - 2011-10-17 16:45 +0100
Re: Simple alphanumeric "encryption"? "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-18 14:18 +1100
Re: Simple alphanumeric "encryption"? "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-18 14:25 +1100
Re: Simple alphanumeric "encryption"? Lew <lewbloch@gmail.com> - 2011-10-18 08:43 -0700
Re: Simple alphanumeric "encryption"? Tom Anderson <twic@urchin.earth.li> - 2011-10-20 20:57 +0100
Re: Simple alphanumeric "encryption"? B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> - 2011-10-17 21:33 -0400
Re: Simple alphanumeric "encryption"? Roedy Green <see_website@mindprod.com.invalid> - 2011-10-20 13:32 -0700
Re: Simple alphanumeric "encryption"? Roedy Green <see_website@mindprod.com.invalid> - 2011-10-20 13:36 -0700
csiph-web