I think the output for 1 needs to be the binary digits of the checksum, because they are after 16 ASCII characters representing the 32 digit HEX number, so:
I would of thought that this is what you need, but the output dosn't match your GUI tool:
Some final od / awk tricks to get the hex string:
---------- Post updated 10-08-12 at 12:44 AM ---------- Previous update was 09-08-12 at 12:12 PM ----------
OK I have a solution - seems the data is padded in a funny way first byte is the datalength and then padded with zeros to 128 chars:
I'm not that good with openssl so I don't know if there is an option to pad like this.
Anyway this script builds the correct data block using xxd (from vim) and awk,
then signs this directly with the openssl -raw option. Again using xxd to produce final output of 1 long string of HEX digits:
Note: I've folded the output above so it displays better. If you don't have vim I might be able to build a solution using pure awk.
Last edited by Chubler_XL; 08-09-2012 at 12:07 PM..
This User Gave Thanks to Chubler_XL For This Post:
I am new to using nawk. When I put the following line in script file test1.awk
I get the results:
{ print NR, length($0),NF}
>nawk -f test1.awk head.txt
1 63 5
2 2622 188
3 2166 155
4 3192 228
5 2679 192
.....
but if I modify the test1.awk file to look like this:
BEGIN {FS = ","}... (2 Replies)
This perhaps does not belong in ths category; apologies, however, we have a heated debate going and your input will decide the result.
Should UNIX (HP, AIX, etc) be rebooted following a monthly cycle (Every month, or a qtr, etc.). We have some UX admins (grumps) who say they have seen a UX... (6 Replies)
How can I use the cp command to copy every file that I can find inside several folders
cp -R *test* folder
Supose there is
./122342343teste122343.txt
./bound/123teste1223453.txt
./feed/123teste1223453.txt
and i want the files 122342343teste122343.txt, bound/123teste1223453.txt... (12 Replies)
1. The problem statement, all variables and given/known data:
I'm brand new to make files, and I was hoping someone could tell me where I'm messing up.
I'm trying to build a cpp program I wrote for class on a linux system, i'm using winscp and puTTy.
The program works fine when I build it... (3 Replies)
Hi All -
1) I work with bigdate for a living, use lots of neat software, SAS, SQL Server, etc. I know how to get my data and such, analyze it, etc...
2) I use UNIX at work (Solaris mostly) and can easily navigate around Unix and get the job done, vi and sas -nodms are about my fav, and some... (6 Replies)