Sponsored Content
Full Discussion: checksum
Operating Systems Solaris checksum Post 302375373 by pludi on Friday 27th of November 2009 01:02:16 PM
Old 11-27-2009
In terms of general usage, they all do pretty much the same. they compute a checksum for a file, allow to compare checksums, and can tell whether 2 files are the same or not. The only difference is the algorithm used. To the best of my knowledge, sum and chksum use pretty general algorithms, while md5sum and sha1sum/sha256sum use cryptographically secure algorithms.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Checksum question

in HPUX: I am copying oracle datafiles from one mountpoint to another the total size is about 250Gb. I wanted to perform a checksum on the target and make sure the files came overy properly. Mountpoints: /s01 to /u01 /s02 to /u02 I tried using "SUM" on these mountpoints but its taking... (1 Reply)
Discussion started by: jigarlakhani
1 Replies

2. Filesystems, Disks and Memory

Directory is Same but Checksum is different

Hello, I am performing a checksum on our software we have installed on a unix solaris 2.0 os. If the checksum generated report is not the same as a 'Gold' report we have on disk. Then our software is deleted, and reinstalled. The problem I am having is if you run the program again, the... (3 Replies)
Discussion started by: JustinPyfrom
3 Replies

3. SCO

checksum

Does anyone know the answer to this? When I run "sum -r" on a file that I've down loaded from the sco website, the 1st set of numbers differs from the checksum on the download page but the 2nd set matches. If I try to install the patch, I get errors. Anyone has an answer? (3 Replies)
Discussion started by: jn5519
3 Replies

4. Shell Programming and Scripting

Checksum+SFTP

Hi ALL, I use solaris OS and SFTP to get/put files from remote server.I use the below command , sftp user@host<<EOF cd "dir" get --checksum "filename" EOF I am getting a strange error as " get --checksum INVALID paramter". It has been working succesfully since last 3 years but all of a... (1 Reply)
Discussion started by: mohanpadamata
1 Replies

5. Shell Programming and Scripting

FTP and Checksum

Hi Guys, Sometimes, I have a problem with transferred files in ftp session. Thats why I want to produce checksum value in my local server and remote server. But I could not find anyway to produce checksum value of transferred files in remote server. Do you have any idea? Thanks, Emre (3 Replies)
Discussion started by: ce_emre21
3 Replies

6. UNIX for Dummies Questions & Answers

sftp checksum! why we use it

Hi All, In file transfer with sftp protocol, what is the purpose "checksum" solves? Is this something not getting the file which has already been bought? Waiting for your response !!! (1 Reply)
Discussion started by: sk84993
1 Replies

7. Solaris

md5 checksum what does it do

Hello good people, I came across md5 checksum. Can anyone please explain to me what it does and if possible an example of how to use it? Thank you very much (1 Reply)
Discussion started by: cjashu
1 Replies

8. IP Networking

Wireshark UDP checksum bad checksum

Hello I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors. Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies

9. Solaris

MD5 checksum

Hi Guys, I have about MD5 checksum so many times but I can't figure out how to use it. Can someone please show me how to perform an MD5 checksum? Thanks a lot guys. (1 Reply)
Discussion started by: cjashu
1 Replies

10. Shell Programming and Scripting

Script to get checksum of itself

is there a way to get a script to do a checksum on itself? something like this: #!/bin/sh myexpectedsig=$(cksum $0 | awk '{print $1}') if ; then exit else who uptime date fi im looking for something that would always represent the running script, which is why im... (6 Replies)
Discussion started by: SkySmart
6 Replies
Dpkg::Checksums(3)						   libdpkg-perl 						Dpkg::Checksums(3)

NAME
Dpkg::Checksums - generate and manipulate file checksums DESCRIPTION
This module provides an object that can generate and manipulate various file checksums as well as some methods to query information about supported checksums. EXPORTED FUNCTIONS
@list = checksums_get_list() Returns the list of supported checksums algorithms. $bool = checksums_is_supported($alg) Returns a boolean indicating whether the given checksum algorithm is supported. The checksum algorithm is case-insensitive. $value = checksums_get_property($alg, $property) Returns the requested property of the checksum algorithm. Returns undef if either the property or the checksum algorithm doesn't exist. Valid properties currently include "program" (returns an array reference with a program name and parameters required to compute the checksum of the filename given as last parameter) and "regex" for the regular expression describing the common string representation of the checksum (as output by the program that generates it). OBJECT METHODS
my $ck = Dpkg::Checksums->new() Create a new Dpkg::Checksums object. This object is able to store the checksums of several files to later export them or verify them. $ck->reset() Forget about all checksums stored. The object is again in the same state as if it was newly created. $ck->add_from_file($filename, %opts) Add checksums information for the file $filename. The file must exists for the call to succeed. If you don't want the given filename to appear when you later export the checksums you might want to set the "key" option with the public name that you want to use. Also if you don't want to generate all the checksums, you can pass an array reference of the wanted checksums in the "checksums" option. It the object already contains checksums information associated the filename (or key), it will error out if the newly computed information does not match what's stored. $ck->add_from_string($alg, $value) Add checksums of type $alg that are stored in the $value variable. $value can be multi-lines, each line should be a space separated list of checksum, file size and filename. Leading or trailing spaces are not allowed. It the object already contains checksums information associated to the filenames, it will error out if the newly read information does not match what's stored. $ck->add_from_control($control, %opts) Read checksums from Checksums-* fields stored in the Dpkg::Control object $control. It uses $self->add_from_string() on the field values to do the actual work. If the option "use_files_for_md5" evaluates to true, then the "Files" field is used in place of the "Checksums-Md5" field. By default the option is false. @files = $ck->get_files() Return the list of files whose checksums are stored in the object. $bool = $ck->has_file($file) Return true if we have checksums for the given file. Returns false otherwise. $ck->remove_file($file) Remove all checksums of the given file. $checksum = $ck->get_checksum($file, $alg) Return the checksum of type $alg for the requested $file. This will not compute the checksum but only return the checksum stored in the object, if any. If $alg is not defined, it returns a reference to a hash: keys are the checksum algorithms and values are the checksums themselves. The hash returned must not be modified, it's internal to the object. $size = $ck->get_size($file) Return the size of the requested file if it's available in the object. $ck->export_to_string($alg, %opts) Return a multi-line string containing the checksums of type $alg. The string can be stored as-is in a Checksum-* field of a Dpkg::Control object. $ck->export_to_control($control, %opts) Export the checksums in the Checksums-* fields of the Dpkg::Control $control object. AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.15 2014-06-05 Dpkg::Checksums(3)
All times are GMT -4. The time now is 06:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy