sha1 is one way. It doesn't matter that you can't turn it back into the original since you wouldn't be able to look up the key in memcache without having the original string anyway :D
On Oct 15, 2010, at 8:45 PM, Shi Yu wrote:
> Hi, thanks for the nice idea. One further question, are these hashing
> algorithm one way, or I can dehash them back to the original string?
> If its one way, so they can only be compared in the hashed forms?
>
> Thanks.
>
> Shi
>
>
>
> On Fri, Oct 15, 2010 at 10:27 PM, Joseph Engo <
[email protected]> wrote:
>> If you need a key that big, just use a hashing algorithm on it like sha1.
>>
>> On Oct 15, 2010, at 8:13 PM, Shi Yu wrote:
>>
>>> Hi
>>>
>>> I wonder whether the key in Memcached could be longer than 250
>>> characters. Is there any way to configure this? I feel the 250
>>> characters is too small because imagine if there is a dna sequence
>>> data as a key, it could exceed that limit.
>>>
>>> Shi
>>
>>