SHA1 calculation algorithm, upload from file and calculation of info_hash parameter