Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / January 2004

Tip: Looking for answers? Try searching our database.

Need java class for printable ascii encrypting

Thread view: 
Jim - 12 Jan 2004 19:15 GMT
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
nobody - 12 Jan 2004 23:11 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> TIA, Jim

just hex-encode the ciphertext?
Jim - 13 Jan 2004 17:00 GMT
Thx.  I've gone ahead and converted one from vb to java.  I'll post
somewhere when I get a chance.

- J

> > Hi,
> >
[quoted text clipped - 6 lines]
>
> just hex-encode the ciphertext?
Michael Amling - 13 Jan 2004 14:32 GMT
>   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
Roedy Green - 19 Jan 2004 22:06 GMT
>  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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.