Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cryptography using cryptix 1

Status
Not open for further replies.

relisys

Programmer
Mar 6, 2003
65
GB
Evening all,

New to cryptography - using the cryptix apis for java.

I need to generate a key to encrypt a string from a mysql database. Once encrypted this gets saved into a new database. I then need to encrypt thi key with a new 16 digit key loaded from the database which is stored as a string.

I then save the encrypted key to the database as well, hoping that the memory will eventually be garbaged losing the original key value.

Can anyone help by giving me some pointers/example code/good online guides, i'm finding this hard going.

Cheers!

Relisys
 
Your asking many questions. Some of them seem to about how to use a thrid party product "Cryptix". That product should contain documentation and maybe even sample code that you can use to figure that out.

As to the rest of your questions about working with a database, you need to ask more specific questions if you have them. If you are just asking "How to work with a database" go to javasoft.com and look at the JDBC tutorial.

-pete



 
Yeah sorry pete - was a bit vague and rambly! Too late to be coding!

Basically i just want someone to give me a help finding some sample code (or writing a quick few lines) to encrypt this data. I can do the database stuff, i just need help with the encryption, i cant find any real good info on it in java - any help / advice would be gratefully received - i dont have to use cryptix - so i'm open to suggestions, but i'd rather stick with either JCE or Cryptix.

Sorry again for the rather crap thread!

Cheers!

Relisys
 
Thanks pete - thats great - now i can generate keys and encrypt.... lol.... any ideas on how to decrypt!!!!!!

Cheers!

Relisys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top