Questions tagged [md5sum]

md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321.

329 questions
2
votes
2 answers

Batch file to check md5sum of log file

I need some help making a service application batch file. In short, the application checks if there are any new files in a folder, if so it writes to a log file (Results.txt). The problem is that if there are no "results" in the folder in 24 hours…
2
votes
4 answers

Why do md5 and sha-* only use alphanumeric characters in their hash result?

I understand not wanting to use '\0', but all the rest in the extended ASCII range is usable right? Wouldn't this provide a much better/secure/"less coliding" hash?
rubenvb
  • 74,642
  • 33
  • 187
  • 332
1
vote
1 answer

Get md5sum in pipe

I am creating archives of very large directories and splitting these archives in smaller parts as follows: tar -vcz target_dir | pigz > target_dir.tar.gz md5sum target_dir.tar.gz > md5sum.txt split -n 10 target_dir.tar.gz…
justinian482
  • 845
  • 2
  • 10
  • 18
1
vote
0 answers

Creating a Thunar Custom Action to compare the md5sum of file against an md5 in the clipboard

Trying to make a Thunar Custom Action for XFCE that gets the md5sum of the file you right click and compares it to the md5 in the clipboard, after a pattern match is used to check if what is in the clipboard is an md5. Then output the results in…
1
vote
0 answers

Hashlib.md5 a varaible bytes object with prefix b''

How i should pass the value of string x (\0x02...) to the hashlib.md5 function and get the same output as result0 (05db8f903dc9adc5874eb2cab3aa725b) ? Note: b'' is a prefix, that causes the following string to be interpreted as a bytes-type object.…
vraihack
  • 31
  • 5
1
vote
2 answers

Ansible - Looking for files and compare their hash

Practice: I have the file files.yml with a list of files and their respective md5_sum hash, like: files: - name: /opt/file_compare1.tar hash: 9cd599a3523898e6a12e13ec787da50a /opt/file_compare1.tar - name: /opt/file_compare2tar.gz hash:…
1
vote
0 answers

Why two empty files have different md5sum?

touch toto.txt md5sum toto.txt a4f004eb028c83dea918471ad5939cfa touch titi.txt md5sum titi.txt d41d8cd98f00b204e9800998ecf8427e And i don't understand why, the two files are empty and should be the same no ?
1
vote
1 answer

How to validate file transfers(cp,scp command) in unix shell scripts by checksum or md5 command?

I have a unix shell script that creates and transfers files from one path to another ( either from same server or from another) Then there is transfer of files to this folder from either same or different server. I'm unable to identify a method…
melony_r
  • 177
  • 1
  • 1
  • 8
1
vote
1 answer

`line 1: syntax error near unexpected token `newline'` when run bash `case` function

#!/bin/bash set -e deb_folder='/home' myinstall(){ deb=$1 temp="${1%.*}" num="${temp##*.}" temp2="${temp%.*}" method="${temp2##*.}" case "$method" in md5) md5=md5sum $deb echo 'here' if [[ "${md5:0:3}${md5:…
kittygirl
  • 2,255
  • 5
  • 24
  • 52
1
vote
1 answer

How to use `md5sum` to process `$1` of `awk`?

test file as example: cat <<'EOF'> test /boot/efi/EFI/debian/grubx64.efi root root 700 1625230722 /boot/efi/EFI/debian/mmx64.efi root root 700 1625230722 /boot/efi/EFI/debian/shimx64.efi root root 700 1625230722 /boot/grub/fonts/unicode.pf2 root…
kittygirl
  • 2,255
  • 5
  • 24
  • 52
1
vote
1 answer

Using xargs parameterrs as variables to compare two md5sum

I'm extracting two md5sums by using this code: md5sum test{1,2} | cut -d' ' -f1-2 I'm receiving two md5sums as in example below: 02eace9cb4b99519b49d50b3e44ecebc d8e8fca2dc0f896fd7cb4cb0031ba249 Afterwards I'm not sure how to compare them. I…
c0d33p
  • 11
  • 1
1
vote
1 answer

Oracle m5 hash returns different string than do Postgresql and bash md5sum(1)

Oracle 12c: SQL> select UTL_RAW.CAST_TO_RAW('Tom') as hex_val, 2 dbms_crypto.hash(src=>UTL_RAW.CAST_TO_RAW('Tom'), typ=>2) as hex_hash 3 from dual; 546F6D D9FFACA46D5990EC39501BCDF22EE7A1 Postgresql 12.5: sides=> select…
RonJohn
  • 349
  • 8
  • 20
1
vote
4 answers

Is there a way of making an md5sum of all files in subfolders?

I have several exports of telegram data and I would like to calculate the md5 and sha256 hash of all files but it only calculates those in the root directory $ md5sum `ls` > hash.md5 md5sum: chats: Is a directory md5sum: css: Is a directory md5sum:…
1
vote
1 answer

how to generate checksum of large blob file on blob trigger using azure function?

I want to create checksum(MD5) for the large files(around 1 GB) uploaded in the blob. I an using blob trigger azure function. Any approach. currently, my code is this const { exec } = require('child_process'); function…
1
vote
2 answers

Gensub inside a shell command in Snakemake

# md5sum on fastq folder on cluster rule md5sum_fastq_cluster: input: path_cluster+'/'+project_name+'/'+project_name+'.csv' output: path_cluster+'/'+project_name+'/'+'md5sum.txt' shell: """find…
Elysire
  • 693
  • 10
  • 23