javascript - hash and unhash text to 20 characters -


i have text 3-100 characters,

i want able hash 20 chars string,

and able unhash original.

  • security not in mind, have string limit, need full string.

it's impossible.

if can compress 100-characters 20 , - can compress whole internet 20 bytes :)


all can - limit original alphabet , use extended hash.
example, source string can alphanumeric case. it's 62 character alphabet. hash used 256 byte values can compress source 4 times.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -