| View previous topic :: View next topic |
| Author |
Message |
Jim Guest
|
Posted: Mon Jan 12, 2004 7:15 pm Post subject: Need java class for printable ascii encrypting |
|
|
Hi,
Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
TIA, Jim
|
|
| Back to top |
|
 |
nobody Guest
|
Posted: Mon Jan 12, 2004 11:11 pm Post subject: Re: Need java class for printable ascii encrypting |
|
|
Jim wrote:
| Quote: | Hi,
Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
TIA, Jim
|
just hex-encode the ciphertext?
|
|
| Back to top |
|
 |
Michael Amling Guest
|
Posted: Tue Jan 13, 2004 2:32 pm Post subject: Re: Need java class for printable ascii encrypting |
|
|
Jim wrote:
| Quote: | Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
|
You could just take the binary and convert it to base 64. If the base
64 text is to be used as file names, it would be better to use '.' and
'_' instead of base 64's standard '/' and '+'.
--Mike Amling
|
|
| Back to top |
|
 |
Jim Guest
|
Posted: Tue Jan 13, 2004 5:00 pm Post subject: Re: Need java class for printable ascii encrypting |
|
|
Thx. I've gone ahead and converted one from vb to java. I'll post
somewhere when I get a chance.
- J
nobody <nobody (AT) example (DOT) com> wrote
| Quote: | Jim wrote:
Hi,
Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
TIA, Jim
just hex-encode the ciphertext?
|
|
|
| Back to top |
|
 |
Roedy Green Guest
|
Posted: Mon Jan 19, 2004 10:06 pm Post subject: Re: Need java class for printable ascii encrypting |
|
|
On 12 Jan 2004 11:15:58 -0800, [email]jim_owen (AT) hotmail (DOT) com[/email] (Jim) wrote or
quoted :
| Quote: | Does anyone know of an available java class that will encrypt to
cipher text consisting of only printable ascii characters? One of the
things I need it for is to encrypt strings that will then be used as
filenames.
|
You take the bytes you get out of the cipher and feed them to a base64
encoder. See http://mindprod.com/jgloss/base64.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
|
| Back to top |
|
 |
|