Calculate SHA2 of script