36

I noticed that the string ICAgICAgICAgICAgICAg, in various repeating lengths, appears fairly often in public key certificates and ciphertexts.

What does this mean? Is it some kind of padding? Is it a quirk of the encryption?

guntbert
  • 1,825
  • 2
  • 18
  • 21
Richard Hum
  • 723
  • 6
  • 12
  • 6
    Are you sure about the ciphertexts? It's actually impossible as the result of any usable encryption is a random-looking byte sequence. The probability of 15 consecutive spaces is 2**-120, i.e., practically zero. – maaartinus Dec 02 '19 at 01:54
  • 17
    It means the certificate is made out of a polymer of Silver, Iodine and Carbon. The length of the chain depends on how long the certificate needs to be. – JDL Dec 02 '19 at 17:14

2 Answers2

57

ICAg represents three spaces when text is base64-encoded.

For example:

echo -n '      hello world' | openssl base64

produces:

ICAgICAgaGVsbG8gd29ybGQ=
mti2935
  • 19,868
  • 2
  • 45
  • 64
31

The accepted answer doesn't show how to get the answer (it shows, how to verify it). Use

echo 'ICAgICAgICAgICAgICAg' | base64 -d

(producing a bunch of spaces) or

echo 'ICAgICAgICAgICAgICAg' | base64 -d | hexdump -C

producing

00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20     |               |
0000000f

to see what's inside.

maaartinus
  • 684
  • 5
  • 12