MD5 Decryption of File

Building a script that will decrypt a file that is encrypted with MD5.

Has anyone here created a script that will decrypt a file to check the file’s integrity?

I haven’t done anything like this and I’m new here in Uipath

Hi,

MD5 is one-way function. We cannot get original data from MD5 value. We can check its integrity as the following steps.

  1. Get MD5 value which is provided by sender / creator etc.
  2. Calculate MD5 value from file we got
  3. Compare 1 with 2. if 1 equals 2, the file is not broken and is not modified.

Regards,

Hi Yoichi,

Below is the flow of the process

  1. Sender generates a report
  2. encrypt with MD5 hash algorithm
  3. Hashkey is appended in the filename
  4. File is sent to the Receiver
  5. Receiver decrypts the file
  6. IF file is tampered RPA will reject the file and alert admin

Is there a way for you to share a sample XAML with the above flow.

Hi,

Hope the following helps you.

Sample20200305-2.zip (10.5 KB)

Regards,

Hi Yoichi,

the XAML that you provided me did work. I just need to move it to the script that I’m working on :slight_smile: thanks for your help. I really appreciate your help on this.

1 Like

how do you decrypt the file once the file is determined not modified?

And one question about the Variable type. How do you set it to System.Byte because I only get System.Byte without the []

Hi,

how do you decrypt the file once the file is determined not modified?

We cannot decrypt the file from MD5 value because it’s one-way function.
If we know it is not modified, we can use the file as it is.

And one question about the Variable type. How do you set it to System.Byte because I only get System.Byte without the []

You can choose it from Array<T> as the following image.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.