- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: How to create SHA512 file hash
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2018 04:37 PM
02-19-2018 04:37 PM
How to create SHA512 file hash
Hi,
Would someone be able to advise how I can create a SHA512 hash for a data file e.g. csv?
We are doing some data transfer (automated) and would like to have this hash to ensure the integrity of the data file that is being sent over.
What I have read and found online so far relates to hashing of passwords and not on data files.
Is it doable?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2018 06:26 PM
02-19-2018 06:26 PM
Re: How to create SHA512 file hash
> [...] how I can create a SHA512 hash for a data file e.g. csv?
You could use OpenSSL. For example (here, on a VMS system, but it's
portable, right?):
its $ openssl dgst -sha512 login.com
SHA512(login.com)= 5aa178f02f8ea781ebef4f10936ef5abc3d852bbfb424b22d51c70446037f
bbda31b6cbfdc970dfa840395b7aeefe8cdfe7364582b8d0f68d0a1b667a579c7da
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2018 06:43 PM
02-19-2018 06:43 PM
Re: How to create SHA512 file hash
> We are doing some data transfer (automated) and would like to have
> this hash to ensure the integrity of the data file that is being sent
> over.
If you're not wedded to SHA512, then you might consider something
simple, like a zip archive. The zip archive standard includes a CRC-32
checksum. You'd get compression and a per-file CRC-32 data integrity
check with minimal extra effort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2018 09:31 PM
02-20-2018 09:31 PM
Re: How to create SHA512 file hash
Hi Steven,
Thanks for your reply.
I am using HPUX so need to figure out how to run OpenSSL. Basically, the host system (HPUX) needs to automate sftp a data file over to a Windows server for processing, so need to ensure that integrity of this data file is correct.
If a hash can be successfully generated, this mean 2 files need to be sent over - the data file and the hash file.
Is that correct?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2018 10:56 PM
02-20-2018 10:56 PM
Re: How to create SHA512 file hash
> I am using HPUX so need to figure out how to run OpenSSL.
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=OPENSSL11I
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/openssl-1.0.2n/
> If a hash can be successfully generated, this mean 2 files need to be
> sent over - the data file and the hash file.
Generally, yes, but you could put both of them into a zip archive,
and send that. (You could instead use something like "tar", but I'd
expect it to be easier to deal with a zip archive on Windows.) Whether
you need a hash digest with a zip archive is another question.
> [...] the host system (HPUX) needs to automate sftp a data file over
> to a Windows server [...]
You already have SFTP (SSH) on the HP-UX system?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP