how to shorten the url in a mathematical approach

后端 未结 4 468
闹比i
闹比i 2021-01-20 23:19

I am looking into the possibility of shortening / encrypting a url which will be from 150 to 250 characters in length to maximum 12 characters using an algorithm. Initially I a

4条回答
  •  悲&欢浪女
    2021-01-21 00:05

    Is your goal primarily to shorten or to encrypt? You could probably specialize a compression algorithm enough to store a known-character-set URL dramatically, but that would not be effective for encryption purposes. I strongly doubt you could get a cryptographically sound encryption algorithm to achieve the specified level of compression, not to mention you're not discussing the allowable key lengths which might be tied into your scheme.

提交回复
热议问题