NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

LabVIEW Hill Cipher Encryption

VERSION 4

Created on: Mar 14, 2008 3:41 PM by ChristianL - Last Modified:  Mar 18, 2008 5:18 PM by Deirdre

 

This example shows how to encrypt a string of data using the simple Hill cipher. It is not a very strong encryption scheme but will suffice for many basic applications. The VI can encrypt and decrypt a string. Because the encrypted string can contain characters which may be difficult to transfer over a network or store in a file, the VI also generates a hexadecimal version of the string which can be easily shared. For decryption you can choose to use the original string or the hexadecimal version of the string.

 

 

 

 

 

The chosen encryption key must be a matrix with a valid inverse. The VI checks for the validity of the encryption key. In the example the encryption key is a 3x3 matrix, but the example can be easily expanded to use larger square matrices.

 

 

 

Information on the Hill cipher can be found in Wikipedia here

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...