Make the encrypted string the same length as the input string?

I have a 15 digit string for encryption.

I tried using various .NET encryption features, but all of my encrypted strings have a length of at least 24, 28 or 32.

I heard about CipherMode.CTS with Padding = None, which produces the same output length as the input length, but I cannot get the same result. I played with block size, key size and salt size.

I don't mind adding a number to my input line to make it 16.

Does anyone know a workaround?

+5
source share
2 answers

ECB, , .

/ (IV), , ( , , ).

, , , , . , ( ).

+3

, . , - .NET(, , ).

+2

All Articles