From 33c9b6643f58a6930043f460d5bfdca4bc1f7222 Mon Sep 17 00:00:00 2001
From: Corentin Thomasset <corentin.thomasset74@gmail.com>
Date: Sun, 28 May 2023 23:13:24 +0200
Subject: chore(lint): switched to a better lint config

---
 src/tools/encryption/encryption.vue | 38 ++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

(limited to 'src/tools/encryption/encryption.vue')

diff --git a/src/tools/encryption/encryption.vue b/src/tools/encryption/encryption.vue
index 4da451c..d738509 100644
--- a/src/tools/encryption/encryption.vue
+++ b/src/tools/encryption/encryption.vue
@@ -1,3 +1,22 @@
+<script setup lang="ts">
+import { computed, ref } from 'vue';
+import { AES, RC4, Rabbit, TripleDES, enc } from 'crypto-js';
+
+const algos = { AES, TripleDES, Rabbit, RC4 };
+
+const cypherInput = ref('Lorem ipsum dolor sit amet');
+const cypherAlgo = ref<keyof typeof algos>('AES');
+const cypherSecret = ref('my secret key');
+const cypherOutput = computed(() => algos[cypherAlgo.value].encrypt(cypherInput.value, cypherSecret.value).toString());
+
+const decryptInput = ref('U2FsdGVkX1/EC3+6P5dbbkZ3e1kQ5o2yzuU0NHTjmrKnLBEwreV489Kr0DIB+uBs');
+const decryptAlgo = ref<keyof typeof algos>('AES');
+const decryptSecret = ref('my secret key');
+const decryptOutput = computed(() =>
+  algos[decryptAlgo.value].decrypt(decryptInput.value, decryptSecret.value).toString(enc.Utf8),
+);
+</script>
+
 <template>
   <c-card title="Encrypt">
     <div flex gap-3>
@@ -78,22 +97,3 @@
     </n-form-item>
   </c-card>
 </template>
-
-<script setup lang="ts">
-import { computed, ref } from 'vue';
-import { AES, TripleDES, Rabbit, RC4, enc } from 'crypto-js';
-
-const algos = { AES, TripleDES, Rabbit, RC4 };
-
-const cypherInput = ref('Lorem ipsum dolor sit amet');
-const cypherAlgo = ref<keyof typeof algos>('AES');
-const cypherSecret = ref('my secret key');
-const cypherOutput = computed(() => algos[cypherAlgo.value].encrypt(cypherInput.value, cypherSecret.value).toString());
-
-const decryptInput = ref('U2FsdGVkX1/EC3+6P5dbbkZ3e1kQ5o2yzuU0NHTjmrKnLBEwreV489Kr0DIB+uBs');
-const decryptAlgo = ref<keyof typeof algos>('AES');
-const decryptSecret = ref('my secret key');
-const decryptOutput = computed(() =>
-  algos[decryptAlgo.value].decrypt(decryptInput.value, decryptSecret.value).toString(enc.Utf8),
-);
-</script>
-- 
cgit v1.2.3

