I want to encrypt string to base64, the string input can be in differential length(the limit is 16 charcters), and I want to get the encrypted string in fixed length.
Does anyone know about the way to do that in .NET framework? or has an algorithm to do that?
If you’re looking for 1-way encryption (no need to decrypt), you can use SHA1
If you want to encrypt and decrypt, you could probably use RSA.