How to generate SHA1 in the custom task

When i create a package fixlet or task with the download http://server1:52311/stage/xyz/install.exe

then i do not have to get teh SHA1 falue for the package which i creating at the custom location?

Is there any way that i can use prefetch block into custom actions? As this comes only with software distribution wizard only.

begin prefetch block
add prefetch item name=D2ACFFB2C60263A129F4EC7CDB6E19C57291F843 sha1=d2acffb2c60263a129f4ec7cdb6e19c57291f843 size=26874368

end prefetch block

You can use the FixletDebugger/QnA tool to generate the SHA1 and SHA256 values.

I personally like to place any files I need for a Fixlet in the folder “C:\Holding” then use the following relevance to return the values I need for a PREFETCH command. You can use the same values for your Prefetch Block.

Q: (Name of it, SHA1 of it, SHA2_256 of it, size of it) of files of folder "C:\Holding\"