I have to encrypt a message with a "zero padding" in OpenSSL. I have read here (Use Zero Padding in OpenSSL?) that if I want a "zero padding", I have to add myself the 0. So here we go.
I'm trying to pad the "A" message for exemple. But there is one thing I don't understand.
["a"].pack("b*").each_byte { |b| printf("%08b", b) }
=> "00000000"
["c"].pack("b*").each_byte { |b| printf("%08b", b) }
=> "00000000"
Why the results are equal ? "a" and "c" are 2 differents strings, but the binary is equal ?