111 reputation
3
bio website e2x.co.uk
location London
age 45
visits member for 3 years, 6 months
seen Nov 23 at 20:25

Java developer and general system's dogsbody.


Dec
18
awarded  Supporter
Dec
18
comment Encrypting file only with SSH -priv-key?
only just found this, nice post. I found that the maximum size symmetric key you can generate from the ssh-key is 12 bytes shorter than the ssh-key itself otherwise the rsautl would fail with "data too large for key size". So this worked in a script: KEYLEN_BYTES=$(ssh-keygen -l -f $PRIV_KEY | awk '{printf("%d", ($1 - 96) / 8)}') to autogen a key length. Given ssh-keygen has a minimum keylength of 768 bits, this still leads to minimum symmetric key of 672 bits, or 84 bytes.
Oct
2
awarded  Teacher
Sep
30
answered Omitting results containing '//' from grep searches
Jun
18
answered What are your favorite command line features or tricks?
Jun
6
awarded  Autobiographer