16 public function decrypt( $sString, $sKey )
18 $sKey = $this->
_formKey($sKey, $sString);
20 $sString = substr( $sString, 3 );
21 $sString = str_replace(
'!',
'=', $sString );
22 $sString = base64_decode( $sString );
23 $sString = $sString ^ $sKey;
25 return substr( $sString, 2, -2 );
38 $iKeyLength = (strlen( $sString ) / strlen( $sKey )) + 5;
40 return str_repeat( $sKey, $iKeyLength );