Example Code

Cryptographic MD5 Hashing of a Directory Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This is a simple demonstration using the MD5 hashing functionality to hash files under a directory.


Description
This VI makes usage of the MD5 hashing functionality built into LabVIEW to cryptographically hash and digest a whole directory of files. A folder is selected and from that we get all filenames within the directory and feed these one by one into the MD5 hashing function to allow us to get a full read out of all MD5 hashes of files with an extension (i.e. not folders) in that directory.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " Cryptographic MD5 Hashing of a Directory 2012 NIVerified.vi"
  2. Run the program
  3. Select the directory to be encrypted

Additional Information or References
VI Block Diagram

 5-295.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

James Kent | Applications Engineer | National Instruments UK & Ireland
w: uk.ni.com | ireland.ni.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.