From a2a912242825785e17727b0b717852ddbd04189e Mon Sep 17 00:00:00 2001 From: Sumalya Chatterjee <105884682+R3DHULK@users.noreply.github.com> Date: Sun, 29 Jan 2023 21:30:37 +0530 Subject: [PATCH] Tool To Decode Data --- decoding_data.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 decoding_data.go diff --git a/decoding_data.go b/decoding_data.go new file mode 100644 index 0000000..a2b6447 --- /dev/null +++ b/decoding_data.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "github.com/DimitarPetrov/stegify/steg" +) + +func main(){ + // 0x45 0x44 + // 0x22 0x33 .....0x45 0x44 0xff + + encodedFile := "encoded_hulk.jpg" // Encoded File Name + ResultFile := "dns-go.jpg" // Desired Result File Name + + err := steg.DecodeByFileNames(encodedFile, ResultFile) + if err != nil{ + fmt.Errorf("[-] Can't Decode The File") + }else{ + fmt.Println("[*] File Has Been Succesfully Decoded") + } +} +