Short, case-insensitive string obfuscation strategy

前端 未结 3 339
滥情空心
滥情空心 2021-01-21 10:21

I am looking for a way to identify (i.e. encode and decode) a set of Java strings with one token. The identification should not involve DB persistence. So far I

3条回答
  •  温柔的废话
    2021-01-21 11:10

    What's a structure of the text (i.e. set of strings)? You could use your knowledge of it to encode it in a shorten form. E.g. if you have large base-decimal number "1234567890" you could translate it into 36-base number, which will be shorter.

    Otherwise it looks like you are trying invent an universal archiver.

    If you don't care about length, then yes, processing by alphabet based encoder (such as Base32) is the only choice.

    Also, if text is large enough, maybe you could save some space by gzipping it.

提交回复
热议问题