# Security in a LAN

Sonia Martínez Martínez (sonmar@gbien.rest.tel.uva.es)
Tue, 08 Jun 1999 17:30:31 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sonia Martínez Martínez: "PBEKey"
- Previous message: Jesper =?iso-8859-1?Q?J=F8rgensen?=: "JavaWebServer ssl.jar"

    Date: Tue, 08 Jun 1999 17:30:31 +0200

    From: Sonia Martínez Martínez <sonmar@gbien.rest.tel.uva.es>

    To: java-security@web2.javasoft.com

    Subject: Security in a LAN

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:

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

- Next message: Sonia Martínez Martínez: "PBEKey"
- Previous message: Jesper =?iso-8859-1?Q?J=F8rgensen?=: "JavaWebServer ssl.jar"