AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need java class for printable ascii encrypting

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Jim
Guest





PostPosted: Mon Jan 12, 2004 7:15 pm    Post subject: Need java class for printable ascii encrypting Reply with 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
Back to top
nobody
Guest





PostPosted: Mon Jan 12, 2004 11:11 pm    Post subject: Re: Need java class for printable ascii encrypting Reply with quote



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





PostPosted: Tue Jan 13, 2004 2:32 pm    Post subject: Re: Need java class for printable ascii encrypting Reply with quote



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





PostPosted: Tue Jan 13, 2004 5:00 pm    Post subject: Re: Need java class for printable ascii encrypting Reply with quote

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





PostPosted: Mon Jan 19, 2004 10:06 pm    Post subject: Re: Need java class for printable ascii encrypting Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.