From 4575de680f208fe13833116470664c7252e84bc8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Fri, 19 Jun 2026 11:07:23 +0000
Subject: [PATCH] move to new repo
---
Encryption/src/main/java/com/megatim/module/encryption/App.java | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/Encryption/src/main/java/com/megatim/module/encryption/App.java b/Encryption/src/main/java/com/megatim/module/encryption/App.java
new file mode 100644
index 0000000..b713826
--- /dev/null
+++ b/Encryption/src/main/java/com/megatim/module/encryption/App.java
@@ -0,0 +1,37 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.megatim.module.encryption;
+
+import com.megatim.module.encryption.impl.AESImpl;
+import com.megatim.module.encryption.ifaces.EncryptionFace;
+
+/**
+ *
+ * @author STEPHANIE
+ */
+public class App {
+ static String password = "megatim1";
+
+ static String inputPath = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toEncrypt\\dynamicreports.pdf";
+ static String outputPath = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toDecrypt\\dynamicreports.pdf";
+ static String decrypt = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toDecrypt\\dynamicreports";
+
+// static String inputPath = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toEncrypt\\spring-copie.txt";
+// static String outputPath = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toDecrypt\\spring-copie.crypt";
+// static String decrypt = "C:\\Users\\STEPHANIE\\Documents\\NetBeansProjects\\share_sources\\Encryption\\files\\symetric\\toDecrypt\\spring-copie";
+
+ public static void main(String[] args) throws Exception{
+
+ EncryptionFace aes = new AESImpl();
+ aes.encryptFile(password, 128, inputPath, outputPath);
+ String encrypted = aes.encryptString(password, 256, "mela");
+ String decrypted = aes.decryptString(password, 256, encrypted);
+ System.out.println("encrypted = "+encrypted);
+ System.out.println("decrypted = "+decrypted);
+// aes.encryptFile(password,192,inputPath, outputPath);
+// aes.decryptFile(password,192,outputPath, decrypt);
+
+ }
+}
--
Gitblit v1.10.0