🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #253

How to encrypt String to only printable characters ???

#253
From: Thorsten Meininger
Date: Sat, 01 Feb 2003 09:51
13 lines
1793 bytes
I need an encryption method to encrypt (and decrypt) a contents of a text string  to
a target string which contains only printable characters (or even characters A-Z,a-z,0-9).
How do I do that ?

As far as I know the Jave Encrytion extension JCE doesn't offer such a method.
If I use e.g. Blowfish in JCE it produces a ciphertext which contains Linebreaks (<CR>).
So it is not suitable.

It is not required to be ultra secure.
Does someone know an easy way to accomplish that ?

Thank you
Thorsten
Technical Details
Message-ID: <b1g5a3$7bt$05$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,1d58af74c56e81d,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: fa3e3,1d58af74c56e81d,start
X-Google-Attributes: gidfa3e3,public
X-Google-Thread: 113ae9,1d58af74c56e81d,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 109107,1d58af74c56e81d,start
X-Google-Attributes: gid109107,public
X-Google-ArrivalTime: 2003-02-01 01:52:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: t_meining@hotmail.com (Thorsten Meininger)
Newsgroups: comp.lang.java.programmer,comp.lang.java.help,borland.public.jbuilder.ide,borland.public.jbuilder.compiler
Subject: How to encrypt String to only printable characters ???
Followup-To: comp.lang.java.help
Date: Sat, 1 Feb 2003 10:51:00 +0100
Organization: T-Online
Lines: 14
Message-ID: <b1g5a3$7bt$05$1@news.t-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1044093060 05 7549 3NkcE9NSS0Yn7+ 030201 09:51:00
X-Complaints-To: abuse@t-online.com
X-Sender: 520000563114-0001@t-dialin.net