I have a C# byte array b_a
that has 16 byte length. When I convert b_a
to base 64 string aaa
, it's length returns 24
string aaa = Convert.ToBase64String(b_a);
Console.WriteLine(aaa.Length); //24
Console.WriteLine(aaa); //'xKKkTjcKsfBDqpIJBKn6QQ=='
I want to convert aaa
string to byte array in Python. But When I convert it, it's length still returns 24.
aaa = 'xKKkTjcKsfBDqpIJBKn6QQ=='
b_a = bytearray(aaa)
len(b_a) #24
I want to get initial b_a
with all. What is the point that I miss?