diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..13566b81b018ad684f3a35fee301741b2734c8f4
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000000000000000000000000000000000000..639900d13c6182e452e33a3bd638e70a0146c785
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectRootManager">
+    <output url="file://$PROJECT_DIR$/out" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8488f6a3600afd60f26bfb8e07dec8794ddbf7f9
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/DES.iml" filepath="$PROJECT_DIR$/DES.iml" />
+      <module fileurl="file://$PROJECT_DIR$/DESFile/DESFile.iml" filepath="$PROJECT_DIR$/DESFile/DESFile.iml" />
+      <module fileurl="file://$PROJECT_DIR$/DESStringa/DESStringa.iml" filepath="$PROJECT_DIR$/DESStringa/DESStringa.iml" />
+    </modules>
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2b63946d5b31084bbb7dda418ceb3d75eb686373
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+          <preferred-size width="-1" height="20" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+      </item>
+    </group>
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/DES.iml b/DES.iml
new file mode 100644
index 0000000000000000000000000000000000000000..9a5cfcef63aeb6c73691f546497af36a69541a4e
--- /dev/null
+++ b/DES.iml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="GENERAL_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/DESFile/DESFile.iml b/DESFile/DESFile.iml
new file mode 100644
index 0000000000000000000000000000000000000000..e7b98ac320483a2e4c2f601c472d452c39b682b3
--- /dev/null
+++ b/DESFile/DESFile.iml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+    </content>
+    <orderEntry type="jdk" jdkName="11" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/DESFile/src/CifrarioFile.java b/DESFile/src/CifrarioFile.java
new file mode 100644
index 0000000000000000000000000000000000000000..dc02b6ca812a96f406aabfd5577dcca662aee5ce
--- /dev/null
+++ b/DESFile/src/CifrarioFile.java
@@ -0,0 +1,121 @@
+/*
+ *            File: CifrarioFile.java
+ *          Autore: Roberto FULIGNI
+ * Ultima modifica: 03/02/2024
+ *
+ *     Descrizione: Metodi di base la codifica/decodifica di file
+ *                  mediante algoritmi crittografici e per la derivazione
+ *                  della chiave crittografica DES a partire da una password.
+ */
+
+import javax.crypto.*;
+import javax.crypto.spec.IvParameterSpec;
+import javax.crypto.spec.PBEKeySpec;
+import javax.crypto.spec.SecretKeySpec;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.security.InvalidAlgorithmParameterException;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.security.spec.InvalidKeySpecException;
+import java.security.spec.KeySpec;
+import java.util.Arrays;
+
+public class CifrarioFile {
+    // Algoritmo usato per generare la chiave.
+    // Possibili valori: DES, DESede, AES
+    public final static String ALGORITMO_CHIAVE = "DES";
+
+    // Tipo di trasformazione dei dati: composto da Cifrario/Modalità/Padding
+    public final static String TRASFORMAZIONE = "DES/CBC/PKCS5Padding";
+
+    // Lunghezza in bit  della chiave crittografica (compresi i bit di parità).
+    final public static int LUNGHEZZA_CHIAVE = 56+8;
+
+    // Stringa esadecimale rappresentante il vettore di inizializzazione
+    // usato nelle modalità in cui è previsto (es. CBC).
+    // La lunghezza in byte del vettore deve coincidere con la dimensione
+    // del blocco del cifrario (es. DES -> 8 byte).
+    public final static String VETTORE_INIZIALIZZAZIONE = "A1B2C3D4E5F6A7B8";
+    // Deriva una chiave crittografica a partire da una password testuale e da un valore di salt
+    private static SecretKey derivaChiave(String password, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException {
+        // Algoritmo di derivazione della chiave: Password-Based Key Derivation Function 2 (PBKDF2)
+        SecretKeyFactory skf = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256");
+
+        // Si genera una chiave binaria temporanea di lunghezza data con un algoritmo iterativo ripetuto 65536 volte
+        KeySpec pbeKeySpec = new PBEKeySpec(password.toCharArray(), salt, 65536, LUNGHEZZA_CHIAVE);
+        SecretKey tmp = skf.generateSecret(pbeKeySpec);
+
+        // La chiave temporanea è utilizzata per creare la chiave crittografica richiesta
+        SecretKey secretKey = new SecretKeySpec(tmp.getEncoded(), ALGORITMO_CHIAVE);
+        return secretKey;
+    }
+    public static void cifraFile(String sorgente, String destinazione, String password) {
+        try {
+            Cipher cipher = Cipher.getInstance(TRASFORMAZIONE);
+            var dimBlocco = cipher.getBlockSize();
+            var salt = new byte[dimBlocco];
+            Arrays.fill(salt, (byte) 0);    // In questo programma il salt è composto da una sequenza di zeri.
+
+            var keySpec = CifrarioFile.derivaChiave(password, salt);
+
+            var ivBytes = UtilityFile.fromHex(CifrarioFile.VETTORE_INIZIALIZZAZIONE);
+            var ivSpec = new IvParameterSpec(ivBytes);
+
+            cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);
+
+            try (var fis = new FileInputStream(sorgente);
+                 var cos = new CipherOutputStream(new FileOutputStream(destinazione), cipher)) {
+
+                // Il contenuto del file sorgente (in chiaro) è letto, cifrato e memorizzato nel file di destinazione
+                // a "chunk" di 4096 byte.
+                var buffer = new byte[4096];
+                int byteLetti;
+                while ((byteLetti = fis.read(buffer)) != -1) {
+                    cos.write(buffer, 0, byteLetti);
+                }
+
+            } catch (IOException e) {
+                System.err.format("Errore durante l'elaborazione del file: %s%n", e.getMessage());
+            }
+
+        } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeySpecException | InvalidKeyException |
+                 InvalidAlgorithmParameterException e) {
+            System.err.format("Errore durante la configurazione del cifrario: %s%n", e.getMessage());
+        }
+    }
+
+    public static void decifraFile(String sorgente, String destinazione, String password) {
+        try {
+            Cipher cipher = Cipher.getInstance(TRASFORMAZIONE);
+            var dimBlocco = cipher.getBlockSize();
+            var salt = new byte[dimBlocco];
+            Arrays.fill(salt, (byte) 0);   // Il salt deve coincidere con quello usato nella fase di cifratura.
+
+            var keySpec = CifrarioFile.derivaChiave(password, salt);
+
+            var ivBytes = UtilityFile.fromHex(CifrarioFile.VETTORE_INIZIALIZZAZIONE);
+            var ivSpec = new IvParameterSpec(ivBytes);
+
+            cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);
+
+            try (var cis = new CipherInputStream(new FileInputStream(sorgente), cipher);
+                 var fos = new FileOutputStream(destinazione)) {
+
+                var buffer = new byte[4096];
+                int byteLetti;
+                while ((byteLetti = cis.read(buffer)) != -1) {
+                    fos.write(buffer, 0, byteLetti);
+                }
+
+            } catch (IOException e) {
+                System.err.format("Errore durante l'elaborazione del file: %s%n", e.getMessage());
+            }
+
+        } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeySpecException | InvalidKeyException |
+                 InvalidAlgorithmParameterException e) {
+            System.err.format("Errore durante la configurazione del cifrario: %s%n", e.getMessage());
+        }
+    }
+}
diff --git a/DESFile/src/DESFile.java b/DESFile/src/DESFile.java
new file mode 100644
index 0000000000000000000000000000000000000000..6bdccba8cee71bccf880245cea199d48e1cd62ee
--- /dev/null
+++ b/DESFile/src/DESFile.java
@@ -0,0 +1,74 @@
+/*
+ *            File: DESFile.java
+ *          Autore: Roberto FULIGNI
+ * Ultima modifica: 03/02/2024
+ *
+ *     Descrizione: Cifratura di file mediante algoritmo DES
+ */
+
+import java.util.Scanner;
+
+public class DESFile {
+
+    public static void main(String[] args) {
+        int comando = mostraMenu();
+        while (comando > 0) {
+            try {
+                switch (comando) {
+                    case 1:
+                        cifraFile();
+                        break;
+                    case 2:
+                        decifraFile();
+                        break;
+                    default:
+                        System.out.println("Comando non valido");
+                }
+            } catch (Exception e) {
+                System.err.println(e.getMessage());
+            }
+            comando = mostraMenu();
+        }
+    }
+
+    private static void decifraFile() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nInserire il nome e l'eventuale percorso del file da decifrare (estensione .enc): ");
+
+        String nomeFileCifrato = s.nextLine();
+        String ext = UtilityFile.estensione(nomeFileCifrato);
+        if (!ext.equals(".enc")) {
+            System.err.println("Formato del file cifrato non valido");
+            return;
+        }
+        String nomeFileChiaro = UtilityFile.nomeFileSenzaEstensione(nomeFileCifrato) + ".dec";
+
+        String password = UtilityFile.leggiPassword();
+        CifrarioFile.decifraFile(nomeFileCifrato, nomeFileChiaro, password);
+        System.out.format("Risultato memorizzato in %s%n", nomeFileChiaro);
+    }
+
+    private static void cifraFile() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nInserire il nome e l'eventuale percorso del file da cifrare: ");
+
+        String nomeFileChiaro = s.nextLine();
+        String nomeFileCifrato = nomeFileChiaro + ".enc";
+
+        String password = UtilityFile.leggiPassword();
+        CifrarioFile.cifraFile(nomeFileChiaro, nomeFileCifrato, password);
+        System.out.format("Risultato memorizzato in %s%n", nomeFileCifrato);
+   }
+
+    private static int mostraMenu() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nCifrario %s%n%n", CifrarioFile.TRASFORMAZIONE);
+        System.out.println("1) Cifra un file");
+        System.out.println("2) Decifra un file");
+        System.out.println("0) Uscita");
+        System.out.println();
+        System.out.print("Comando: ");
+        int comando = s.nextInt();
+        return comando;
+    }
+}
\ No newline at end of file
diff --git a/DESFile/src/UtilityFile.java b/DESFile/src/UtilityFile.java
new file mode 100644
index 0000000000000000000000000000000000000000..2a2a31ca835e7b374861df5b188a0b014aa89445
--- /dev/null
+++ b/DESFile/src/UtilityFile.java
@@ -0,0 +1,49 @@
+import java.io.Console;
+import java.util.Arrays;
+import java.util.Scanner;
+
+public class UtilityFile {
+    public static String estensione(String nomeCompleto) {
+        int idx = nomeCompleto.lastIndexOf('.');
+        if (idx < 0)
+            return "";
+        return nomeCompleto.substring(idx);
+    }
+
+    public static String nomeFileSenzaEstensione(String nomeCompleto) {
+        int idx = nomeCompleto.lastIndexOf('.');
+        if (idx < 0)
+            return nomeCompleto;
+        return nomeCompleto.substring(0, idx);
+    }
+
+    public static String leggiPassword() {
+        Console c = System.console();
+        String password;
+        if (c != null) {
+            char[] caratteri = c.readPassword("Password: ");
+            password = new String(caratteri);
+            Arrays.fill(caratteri, '\0'); // Elimina i caratteri della password dalla memoria
+        } else {
+            Scanner s = new Scanner(System.in);
+            System.out.print("Password: ");
+            password = s.nextLine();
+        }
+        return password;
+    }
+    public static byte[] fromHex(String hex) {
+        if (hex.length() % 2 != 0) {
+            hex = "0" + hex;
+        }
+        int lenBuffer = hex.length() / 2;
+        byte[] buffer = new byte[lenBuffer];
+        for(int i = 0; i < lenBuffer; i++) {
+            int j = 2*i;
+            String cifreHex = hex.substring(j, j + 2);
+            byte b = (byte) Integer.parseInt(cifreHex, 16);
+            buffer[i] = b;
+        }
+        return buffer;
+    }
+
+}
diff --git a/DESStringa/DESStringa.iml b/DESStringa/DESStringa.iml
new file mode 100644
index 0000000000000000000000000000000000000000..e7b98ac320483a2e4c2f601c472d452c39b682b3
--- /dev/null
+++ b/DESStringa/DESStringa.iml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+    </content>
+    <orderEntry type="jdk" jdkName="11" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/DESStringa/src/Cifrario.java b/DESStringa/src/Cifrario.java
new file mode 100644
index 0000000000000000000000000000000000000000..8242066d2d74e46dce6aa4a9c2344578104e3360
--- /dev/null
+++ b/DESStringa/src/Cifrario.java
@@ -0,0 +1,70 @@
+/*
+ *            File: Cifrario.java
+ *          Autore: Roberto FULIGNI
+ * Ultima modifica: 03/02/2024
+ *
+ *     Descrizione: Metodi di base la codifica/decodifica di dati binari
+ *                  mediante algoritmi crittografici e per la generazione
+ *                  di chiavi crittografiche DES.
+ */
+
+import javax.crypto.Cipher;
+import javax.crypto.KeyGenerator;
+import javax.crypto.SecretKey;
+import javax.crypto.spec.IvParameterSpec;
+import javax.crypto.spec.SecretKeySpec;
+import java.security.NoSuchAlgorithmException;
+
+public class Cifrario {
+    // Algoritmo usato per generare la chiave.
+    // Possibili valori: DES, DESede, AES
+    public final static String ALGORITMO_CHIAVE = "DES";
+
+    // Tipo di trasformazione dei dati: composto da Cifrario/Modalità/Padding
+    public final static String TRASFORMAZIONE = "DES/CBC/PKCS5Padding";
+
+    // Stringa esadecimale rappresentante il vettore di inizializzazione
+    // usato nelle modalità in cui è previsto (es. CBC).
+    // La lunghezza in byte del vettore deve coincidere con la dimensione
+    // del blocco del cifrario (es. DES -> 8 byte).
+    public final static String VETTORE_INIZIALIZZAZIONE = "A1B2C3D4E5F6A7B8";
+
+    public static byte[] generaChiave() {
+        try {
+            KeyGenerator gen = KeyGenerator.getInstance(ALGORITMO_CHIAVE);
+            SecretKey k = gen.generateKey();
+            byte[] buffer = k.getEncoded();
+            return buffer;
+        } catch (NoSuchAlgorithmException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public static byte[] cifra(byte[] plainText, byte[] keyBytes, byte[] ivBytes) {
+        try {
+            var secKey = new SecretKeySpec(keyBytes, ALGORITMO_CHIAVE);
+            var iv = new IvParameterSpec(ivBytes);
+
+            Cipher cipher = Cipher.getInstance(TRASFORMAZIONE);
+            cipher.init(Cipher.ENCRYPT_MODE, secKey, iv);
+
+            byte[] cipherText = cipher.doFinal(plainText);
+            return cipherText;
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public static byte[] decifra(byte[] cipherText, byte[] keyBytes, byte[] iv) {
+        try {
+            SecretKey secKey = new SecretKeySpec(keyBytes, ALGORITMO_CHIAVE);
+            Cipher cipher = Cipher.getInstance(TRASFORMAZIONE);
+            cipher.init(Cipher.DECRYPT_MODE, secKey, new IvParameterSpec(iv));
+
+            byte[] plainText = cipher.doFinal(cipherText);
+            return plainText;
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+    }
+}
diff --git a/DESStringa/src/DESStringa.java b/DESStringa/src/DESStringa.java
new file mode 100644
index 0000000000000000000000000000000000000000..8a4c9fb8d68dd093fe027f51b855d222da210eb9
--- /dev/null
+++ b/DESStringa/src/DESStringa.java
@@ -0,0 +1,78 @@
+/*
+ *            File: DESStringa.java
+ *          Autore: Roberto FULIGNI
+ * Ultima modifica: 03/02/2024
+ *
+ *     Descrizione: Cifratura di stringhe mediante algoritmo DES
+ */
+
+import java.util.Scanner;
+
+public class DESStringa {
+    static byte[] chiave;
+    static byte[] iv;
+    public static void main(String[] args) {
+        chiave = Cifrario.generaChiave();
+        iv = Utility.fromHex(Cifrario.VETTORE_INIZIALIZZAZIONE);
+        int comando = mostraMenu();
+        while (comando > 0) {
+            try {
+                switch (comando) {
+                    case 1:
+                        cifraStringa();
+                        break;
+                    case 2:
+                        decifraStringa();
+                        break;
+                    case 3:
+                        mostraChiave();
+                        break;
+                    default:
+                        System.out.println("Comando non valido");
+                }
+            } catch (Exception e) {
+                System.err.println(e.getMessage());
+            }
+            comando = mostraMenu();
+        }
+    }
+
+    private static void cifraStringa() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nInserire la stringa da cifrare: ");
+        String str = s.nextLine();
+        byte[] p = str.getBytes();
+        byte[] c = Cifrario.cifra(p, chiave, iv);
+        System.out.format("%nStringa cifrata (base64): %s%n", Utility.toBase64(c));
+    }
+    private static void decifraStringa() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nInserire i dati da decifrare (base64): ");
+        String c64 = s.nextLine().trim();
+        byte[] c = Utility.fromBase64(c64);
+        byte[] p = Cifrario.decifra(c, chiave, iv);
+        String str = new String(p);
+        System.out.format("%nStringa decifrata: %s%n", str);
+    }
+    private static void mostraChiave() {
+        System.out.format("%nChiave generata (hex): %s%n", Utility.toHex(chiave));
+        System.out.format("Vettore di inizializzazione (hex): %s%n", Utility.toHex(iv));
+    }
+
+
+    private static int mostraMenu() {
+        Scanner s = new Scanner(System.in);
+        System.out.format("%nCifrario %s%n%n", Cifrario.TRASFORMAZIONE);
+        System.out.println("1) Cifra una stringa");
+        System.out.println("2) Decifra una stringa");
+        System.out.println("3) Mostra la chiave");
+        System.out.println("0) Uscita");
+
+        System.out.println();
+        System.out.print("Comando: ");
+        int comando = s.nextInt();
+        return comando;
+
+
+    }
+}
\ No newline at end of file
diff --git a/DESStringa/src/Utility.java b/DESStringa/src/Utility.java
new file mode 100644
index 0000000000000000000000000000000000000000..24fcf6f8b399b23f955d114a365e2ef55efc647b
--- /dev/null
+++ b/DESStringa/src/Utility.java
@@ -0,0 +1,42 @@
+/*
+ *            File: Utility.java
+ *          Autore: Roberto FULIGNI
+ * Ultima modifica: 03/02/2024
+ *
+ *     Descrizione: Metodi di conversione di dati in formato esadecimale e Base64.
+ */
+
+import java.util.Base64;
+
+public class Utility {
+    public static String toHex(byte[] array) {
+        StringBuilder result = new StringBuilder();
+        for (byte b : array) {
+            result.append(String.format("%02X", b));
+        }
+        return result.toString();
+    }
+
+    public static byte[] fromHex(String hex) {
+        if (hex.length() % 2 != 0) {
+            hex = "0" + hex;
+        }
+        int lenBuffer = hex.length() / 2;
+        byte[] buffer = new byte[lenBuffer];
+        for(int i = 0; i < lenBuffer; i++) {
+            int j = 2*i;
+            String cifreHex = hex.substring(j, j + 2);
+            byte b = (byte) Integer.parseInt(cifreHex, 16);
+            buffer[i] = b;
+        }
+        return buffer;
+    }
+
+    public static String toBase64(byte[] buffer) {
+        return Base64.getEncoder().encodeToString(buffer);
+    }
+
+    public static byte[] fromBase64(String strB64) {
+        return Base64.getDecoder().decode(strB64);
+    }
+}
diff --git a/README.md b/README.md
index 6e75672a5ef8fb082e897ea9a8cd07954c88fc7d..026a6316e8068645709b01a7afcce16af6df2b13 100644
--- a/README.md
+++ b/README.md
@@ -2,91 +2,4 @@
 
 Cifratura di stringhe e file mediante algoritmo DES.
 
-## Getting started
-
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
-
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin https://git.netlab.fauser.edu/classi-quinte/sistemi-e-reti/des.git
-git branch -M main
-git push -uf origin main
-```
-
-## Integrate with your tools
-
-- [ ] [Set up project integrations](https://git.netlab.fauser.edu/classi-quinte/sistemi-e-reti/des/-/settings/integrations)
-
-## Collaborate with your team
-
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
-
-## Test and Deploy
-
-Use the built-in continuous integration in GitLab.
-
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
-
-***
-
-# Editing this README
-
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
+&copy; 2024 - prof. Roberto Fuligni
diff --git a/out/production/DESFile/CifrarioFile.class b/out/production/DESFile/CifrarioFile.class
new file mode 100644
index 0000000000000000000000000000000000000000..09b4f4ad4646f466a53baddf9b1edf0aa1bdc098
Binary files /dev/null and b/out/production/DESFile/CifrarioFile.class differ
diff --git a/out/production/DESFile/DESFile.class b/out/production/DESFile/DESFile.class
new file mode 100644
index 0000000000000000000000000000000000000000..468d1994fa29cdcf9856bb0b751adfa0ba740d9f
Binary files /dev/null and b/out/production/DESFile/DESFile.class differ
diff --git a/out/production/DESFile/UtilityFile.class b/out/production/DESFile/UtilityFile.class
new file mode 100644
index 0000000000000000000000000000000000000000..06fc818f6096ded87d45c6f8914c3976f5e6bbfa
Binary files /dev/null and b/out/production/DESFile/UtilityFile.class differ
diff --git a/out/production/DESStringa/Cifrario.class b/out/production/DESStringa/Cifrario.class
new file mode 100644
index 0000000000000000000000000000000000000000..05704afac42c31356bbdc0f3d6bd9c48512594b5
Binary files /dev/null and b/out/production/DESStringa/Cifrario.class differ
diff --git a/out/production/DESStringa/DESStringa.class b/out/production/DESStringa/DESStringa.class
new file mode 100644
index 0000000000000000000000000000000000000000..c8d1d9faa7aeb1e2b9bd2c46d38419896bd8426e
Binary files /dev/null and b/out/production/DESStringa/DESStringa.class differ
diff --git a/out/production/DESStringa/Utility.class b/out/production/DESStringa/Utility.class
new file mode 100644
index 0000000000000000000000000000000000000000..2256c0adacb1e92c2a823367d42f925fa09d86dc
Binary files /dev/null and b/out/production/DESStringa/Utility.class differ