check files on uniqueness based on SHA1-hash

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
2 posts Page 1 of 1

Gerard Verheul

Posts: 1
Joined: Wed Oct 01, 2014 2:27 am

Post by Gerard Verheul » Fri Apr 15, 2016 5:33 am
We need to check all files to/from customers on uniqueness based on SHA1 hash.
functionality :
a. Calculate SHA1 hash of a file
b. is this hash already present in a specified named list?
c. If not in list, add it to the named list
d. If hash does occur, exception handling
e. Named list cleanup (days validity of the hash)
How can this be done in a MFT workflow?
Are there already functions/tasks in MFT we can use for his?

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Fri Apr 15, 2016 10:16 am
Gerard,

GAMFT has the capability of running local commands. Utilizing that functionality, you can take a file that has been uploaded or currently exists and pass that into the local command to generate the MD5 or SHA1 hash of the file, returning that value to the GAMFT Workflow.

Now, it's just a matter of doing comparisons against your specified named list. Search a Table, CSV, XML, etc... compare against value generated and you have your conditions identified.

Named list cleanup can be done separately.

*Side Note*
You could also create a custom task that does this for you as well. Pass the file name into the custom task and it returns the SHA1 value for you.

Either way, you have the information you need for processing.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1