javascript encrypt&confusion