MD5 hashing of sequential files and dynamic arrays in UniData

I am creating a serial file that requires digital signature (MD5 hash). While I am creating a sequential file, I am also creating a dynamic array with the same data. If I execute an MD5 hash for both a sequential file and a dynamic array, can I expect the result to be the same or different?

+4
source share
1 answer

No, usually they will not be the same.

When you add to the dynamic array, you are likely to enter attribute markers (@AM) for each new line, while with consecutive files they will remain as native new line characters.

If you use a UNIX system to run UniData, you can do CONVERT @AM TO CHAR(10) IN MYARRAY , and it should be equivalent.

If you use Windows to run UniData, you can do SWAP @AM WITH CHAR(13):CHAR(10) IN MYARRAY , and it should be equivalent.

Disclaimer: The above code has not been tested.

+6
source

Source: https://habr.com/ru/post/1300682/


All Articles