User753101303 posted
Hi,
You'll never be able to find a real encryption algorithm that can transform data of arbitrary length to just 10 characters and then compute back the source data just from those 10 characters (else you would have as well found a compression algorithm
that allows to compress whatever you want to a handful of bytes !!!)
It seems maybe a confusion with "hashing" (ie a kind of "thumbprint" with a fixed limited size but that doesn't allow to retrieve the source data). Another option could be to use a guid as a "handle" for the source data.
If you need further help explain first what you are trying to do so that one could see which approach could fit.