LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wav file encryption using TEA

Solved!
Go to solution

I am trying to implement the TEA encryption on a wav file for a project.

 

XTEA: http://www.ni.com/white-paper/7519/en/

 

This TEA.vi requires two unsigned long int as input, and I am unable to convert the wav file into an array of integers. Any suggestions?

 

Note: I can create an array of waveforms

 

 

 

 

 

 

0 Kudos
Message 1 of 22
(3,480 Views)

Hi kulsman,

 

read the WAV data as U8 or U16 array. Take four U8 or two U16 values and join them to U32 (typecasting may work as well). Feed those joined values to your TEA routine!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 22
(3,456 Views)

Hello GerdW,

 

I am new to labview. I just started programming yesterday. I can't seem to find the builtin Vi that reading the file as U8 or U16 array.

0 Kudos
Message 3 of 22
(3,448 Views)

Hi kulsman,

 

ReadBinaryFile reads the file as binary data (of selectable datatype).

 

You can also read the file as text (ReadFromTextFile) and convert the text to an U8 array (StringToU8Array)...

 

When you're new to LabVIEW I (really) suggest to look at the free online courses offered by NI. Also study the example VIs provided in LabVIEW (Example Finder in the Help menu!).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 22
(3,445 Views)

Hello GerdW,

 

I have started looking at the free online course, but for some reasoning open the example because of error:"NI System Web server is not running".

 

Anyway, I have attempted to use the readbinary vi and readtext.vi, but I don't think I implementted them properly. Especially the readbinary.vi, i am not sure about setting the data value so that it reading a wav file.

0 Kudos
Message 5 of 22
(3,435 Views)

Hi kulsman,

 

did you notice the signature in my messages and did you understand what I try to tell you with it?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 22
(3,432 Views)

Yep, I understand. You like kudos

0 Kudos
Message 7 of 22
(3,429 Views)

Not sure how the selectable data aspect works.

0 Kudos
Message 8 of 22
(3,427 Views)

Hi kulsman,

 

my signature also states which LabVIEW version I do use. Can't open your LV2013 VI, so please downconvert when you think I should assist further…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 22
(3,419 Views)

Hello GerdW,

 

I am so sorry. I had no idea that different version of labview save files differently.

 

 

 

0 Kudos
Message 10 of 22
(3,416 Views)