Stream Cipher Encryption with short encrypted string

1.1k views Asked by At

I am looking for a Stream Cipher encryption method, that will result in the encrypted string being prefferably as short as possible, and containing alphanumeric characters only. Is there such a thing built in .NET? I have researched but could not find something like this.

Thank you,

2

There are 2 answers

1
Amc_rtty On BEST ANSWER

I found the answer here Really simple short string compression, meaning its not possible, as encryption means also making the value longer. The best that can be done is keeping the same size of the input, but if the result must be alphanumeric then a longer string is a must

2
Sean On

You can make it shorter - just zip the resulting encrypted string using java or some other library and output as hex. Pretty straight forward.