[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce]



Hello:

        We are two students of telecommunications of Spain.We are doing
the final project about security in a LAN.We want to implement a
protocol to send datas in a way secure.We want to encrypt the files with
a DES algorithm and send them to other users.WE generate the key to
encrypt/desencrypt  so:

(NOTE:we are using the algorithms implemented in the package IAIK)



 KeyGenerator des_key_gen=KeyGenerator.getInstance("DES");
 SecretKey des_key=des_key_gen.generateKey(); 
 Cipher des = Cipher.getInstance("DES/ECB/PKCS5Padding");
 des.init(Cipher.ENCRYPT_MODE, des_key);
  

        Our problem is that we want to store the key and then send it
(we want to encrypt the des_key with a user's keysecret) to the users so
that they can desencrypt the files that the users have recived
encrypted.We don't Know how we can do it.We are using the database
SQLServer.
How can we store the key in the database or in a temp file so that we
can use after?.
We want to ask you more information about this subject,and if it were
possible source code  implemented in java than can help us.

        Thank you for your help

        Susana Cristo
How can we store the key in the database or in a temp file so that we
can use after?.
We want to ask you more information about this subject,and if it were
possible source code  implemented in java than can help us.

        Thank you for your help

        Susana Cristobla & Sonia Martinez
--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-jce