Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:37-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13098 2011-12-20T09:50:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=57834#p57834 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:50 am


]]>
2011-12-07T01:03:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=55516#p55516 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: December 7, 2011, 1:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:03 am


]]>
2011-11-05T19:26:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=51890#p51890 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: November 5, 2011, 8:26 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:26 pm


]]>
2011-10-29T20:35:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=49985#p49985 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: October 29, 2011, 9:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:35 pm


]]>
2011-10-17T15:39:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=47779#p47779 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: October 17, 2011, 1:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:39 pm


]]>
2011-10-11T14:35:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=46180#p46180 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: October 11, 2011, 12:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:35 pm


]]>
2011-10-03T15:48:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=44310#p44310 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: October 3, 2011, 1:48 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:48 pm


]]>
2011-10-03T03:41:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=43017#p43017 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: October 3, 2011, 1:41 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:41 am


]]>
2011-09-27T05:26:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=41263#p41263 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: September 27, 2011, 3:26 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:26 am


]]>
2011-09-26T21:03:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=40019#p40019 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:03 pm


]]>
2011-09-17T16:20:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=38161#p38161 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: September 17, 2011, 2:21 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:20 pm


]]>
2011-09-14T01:28:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=36742#p36742 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: September 13, 2011, 11:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:28 am


]]>
2011-09-13T12:03:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=35470#p35470 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: September 13, 2011, 10:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:03 pm


]]>
2011-08-15T15:14:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=31591#p31591 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: August 15, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-encryption.inc.php ?php /** * Encryption utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_encryption" ) ) { /** * Encryption utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_encryption { /** * RIJNDAEL 256: two-way encryption/decryption, with a URL-safe base64 wrapper. * * Includes a built-in fallback on XOR encryption when mcrypt is not available. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string of data to encrypt. * @param str $key Optional. Key used for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Encrypted string. */ public static function encrypt ( $string = FALSE , $key = FALSE ) { $string = ( is_string ( $string ) ) ? $string : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ if ( function_exists ( "mcrypt_encrypt" ) && in_array ( "rijndael-256" , mcrypt_list_algorithms ( ) ) && in_array ( "cbc" , mcrypt_list_modes ( ) ) ) { $string = ( strlen ( $string ) ) ? "~r2|" . $string : "" ; $key = substr ( $key , 0 , mcrypt_get_key_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) ) ; $iv = c_ws_plugin__s2member_utils_strings:: random_str_gen ( mcrypt_get_iv_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) , false ) ; $encrypted = mcrypt_encrypt (MCRYPT_RIJNDAEL_256, $key , $string , MCRYPT_MODE_CBC, $iv ) ; $encrypted = ( strlen ( $encrypted ) ) ? "~r2:" . $iv . "|" . $encrypted : "" ; /**/ return ( $base64 = str_replace ( array ( "+" , "/" , "=" ) , array ( "-" , "_" , "~" ) , base64_encode ( $encrypted ) ) ) ; } else /* Fallback on XOR encryption. */ return c_ws_plugin__s2member_utils_encryption:: xencrypt ( $string , $key ) ; } /** * RIJNDAEL 256: two-way encryption/decryption, with a URL-safe base64 wrapper. * * Includes a built-in fallback on XOR encryption when mcrypt is not available. * * @package s2Member\Utilities * @since 3.5 * * @param str $base64 A string of data to decrypt. Should still be base64 encoded. * @param str $key Optional. Key used originally for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Decrypted string. */ public static function decrypt ( $base64 = FALSE , $key = FALSE ) { $base64 = ( is_string ( $base64 ) ) ? $base64 : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $encrypted = base64_decode ( str_replace ( array ( "-" , "_" , "~" , "." ) , array ( "+" , "/" , "=" , "=" ) , $base64 ) ) ; /**/ if ( function_exists ( "mcrypt_decrypt" ) && in_array ( "rijndael-256" , mcrypt_list_algorithms ( ) ) && in_array ( "cbc" , mcrypt_list_modes ( ) ) && preg_match ( "/^~r2\:(.+?)\|/" , $encrypted , $v1 ) ) { $encrypted = preg_replace ( "/^~r2\:(.+?)\|/" , "" , $encrypted ) ; $key = substr ( $key , 0 , mcrypt_get_key_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) ) ; $decrypted = mcrypt_decrypt (MCRYPT_RIJNDAEL_256, $key , $encrypted , MCRYPT_MODE_CBC, $v1 [ 1 ] ) ; $decrypted = preg_replace ( "/^~r2\|/" , "" , $decrypted , 1 , $v2 ) ; $decrypted = ( $v2 ) ? $decrypted : "" ; /* Check validity. */ $decrypted = rtrim ( $decrypted , "\0 \4" ) ; /* Nulls/EOTs. */ /**/ return ( $string = $decrypted ) ; } else /* Fallback on XOR decryption. */ return c_ws_plugin__s2member_utils_encryption:: xdecrypt ( $base64 , $key ) ; } /** * XOR two-way encryption/decryption, with a base64 wrapper. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string of data to encrypt. * @param str $key Optional. Key used for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Encrypted string. */ public static function xencrypt ( $string = FALSE , $key = FALSE ) { $string = ( is_string ( $string ) ) ? $string : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $string = ( strlen ( $string ) ) ? "~xe|" . $string : "" ; /**/ for ( $i = 1 , $encrypted = "" ; $i = strlen ( $string ) ; $i ++ ) { $char = substr ( $string , $i - 1 , 1 ) ; $keychar = substr ( $key , ( $i % strlen ( $key ) ) - 1 , 1 ) ; $encrypted .= chr ( ord ( $char ) + ord ( $keychar ) ) ; } /**/ $encrypted = ( strlen ( $encrypted ) ) ? "~xe|" . $encrypted : "" ; /**/ return ( $base64 = str_replace ( array ( "+" , "/" , "=" ) , array ( "-" , "_" , "~" ) , base64_encode ( $encrypted ) ) ) ; } /** * XOR two-way encryption/decryption, with a base64 wrapper. * * @package s2Member\Utilities * @since 3.5 * * @param str $base64 A string of data to decrypt. Should still be base64 encoded. * @param str $key Optional. Key used originally for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Decrypted string. */ public static function xdecrypt ( $base64 = FALSE , $key = FALSE ) { $base64 = ( is_string ( $base64 ) ) ? $base64 : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $encrypted = base64_decode ( str_replace ( array ( "-" , "_" , "~" , "." ) , array ( "+" , "/" , "=" , "=" ) , $base64 ) ) ; /**/ $encrypted = preg_replace ( "/^~xe\|/" , "" , $encrypted , 1 , $v1 ) ; $encrypted = ( $v1 ) ? $encrypted : "" ; /* Check validity. */ /**/ for ( $i = 1 , $decrypted = "" ; $i = strlen ( $encrypted ) ; $i ++ ) { $char = substr ( $encrypted , $i - 1 , 1 ) ; $keychar = substr ( $key , ( $i % strlen ( $key ) ) - 1 , 1 ) ; $decrypted .= chr ( ord ( $char ) - ord ( $keychar ) ) ; } /**/ $decrypted = preg_replace ( "/^~xe\|/" , "" , $decrypted , 1 , $v2 ) ; $decrypted = ( $v2 ) ? $decrypted : "" ; /* Check validity. */ /**/ return ( $string = $decrypted ) ; } } } ? [ full view ]s2member\includes\classes\utils-encryption.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:14 pm


]]>
2011-07-11T17:30:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=27761#p27761 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: July 11, 2011, 6:30 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-encryption.inc.php ?php /** * Encryption utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_encryption" ) ) { /** * Encryption utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_encryption { /** * RIJNDAEL 256: two-way encryption/decryption, with a URL-safe base64 wrapper. * * Includes a built-in fallback on XOR encryption when mcrypt is not available. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string of data to encrypt. * @param str $key Optional. Key used for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Encrypted string. */ public static function encrypt ( $string = FALSE , $key = FALSE ) { $string = ( is_string ( $string ) ) ? $string : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ if ( function_exists ( "mcrypt_encrypt" ) && in_array ( "rijndael-256" , mcrypt_list_algorithms ( ) ) && in_array ( "cbc" , mcrypt_list_modes ( ) ) ) { $string = ( strlen ( $string ) ) ? "~r2|" . $string : "" ; $key = substr ( $key , 0 , mcrypt_get_key_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) ) ; $iv = c_ws_plugin__s2member_utils_strings:: random_str_gen ( mcrypt_get_iv_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) , false ) ; $encrypted = mcrypt_encrypt (MCRYPT_RIJNDAEL_256, $key , $string , MCRYPT_MODE_CBC, $iv ) ; $encrypted = ( strlen ( $encrypted ) ) ? "~r2:" . $iv . "|" . $encrypted : "" ; /**/ return ( $base64 = str_replace ( array ( "+" , "/" , "=" ) , array ( "-" , "_" , "~" ) , base64_encode ( $encrypted ) ) ) ; } else /* Fallback on XOR encryption. */ return c_ws_plugin__s2member_utils_encryption:: xencrypt ( $string , $key ) ; } /** * RIJNDAEL 256: two-way encryption/decryption, with a URL-safe base64 wrapper. * * Includes a built-in fallback on XOR encryption when mcrypt is not available. * * @package s2Member\Utilities * @since 3.5 * * @param str $base64 A string of data to decrypt. Should still be base64 encoded. * @param str $key Optional. Key used originally for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Decrypted string. */ public static function decrypt ( $base64 = FALSE , $key = FALSE ) { $base64 = ( is_string ( $base64 ) ) ? $base64 : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $encrypted = base64_decode ( str_replace ( array ( "-" , "_" , "~" , "." ) , array ( "+" , "/" , "=" , "=" ) , $base64 ) ) ; /**/ if ( function_exists ( "mcrypt_decrypt" ) && in_array ( "rijndael-256" , mcrypt_list_algorithms ( ) ) && in_array ( "cbc" , mcrypt_list_modes ( ) ) && preg_match ( "/^~r2\:(.+?)\|/" , $encrypted , $v1 ) ) { $encrypted = preg_replace ( "/^~r2\:(.+?)\|/" , "" , $encrypted ) ; $key = substr ( $key , 0 , mcrypt_get_key_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC) ) ; $decrypted = mcrypt_decrypt (MCRYPT_RIJNDAEL_256, $key , $encrypted , MCRYPT_MODE_CBC, $v1 [ 1 ] ) ; $decrypted = preg_replace ( "/^~r2\|/" , "" , $decrypted , 1 , $v2 ) ; $decrypted = ( $v2 ) ? $decrypted : "" ; /* Check validity. */ $decrypted = rtrim ( $decrypted , "\0 \4" ) ; /* Nulls/EOTs. */ /**/ return ( $string = $decrypted ) ; } else /* Fallback on XOR decryption. */ return c_ws_plugin__s2member_utils_encryption:: xdecrypt ( $base64 , $key ) ; } /** * XOR two-way encryption/decryption, with a base64 wrapper. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string of data to encrypt. * @param str $key Optional. Key used for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Encrypted string. */ public static function xencrypt ( $string = FALSE , $key = FALSE ) { $string = ( is_string ( $string ) ) ? $string : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $string = ( strlen ( $string ) ) ? "~xe|" . $string : "" ; /**/ for ( $i = 1 , $encrypted = "" ; $i = strlen ( $string ) ; $i ++ ) { $char = substr ( $string , $i - 1 , 1 ) ; $keychar = substr ( $key , ( $i % strlen ( $key ) ) - 1 , 1 ) ; $encrypted .= chr ( ord ( $char ) + ord ( $keychar ) ) ; } /**/ $encrypted = ( strlen ( $encrypted ) ) ? "~xe|" . $encrypted : "" ; /**/ return ( $base64 = str_replace ( array ( "+" , "/" , "=" ) , array ( "-" , "_" , "~" ) , base64_encode ( $encrypted ) ) ) ; } /** * XOR two-way encryption/decryption, with a base64 wrapper. * * @package s2Member\Utilities * @since 3.5 * * @param str $base64 A string of data to decrypt. Should still be base64 encoded. * @param str $key Optional. Key used originally for encryption. * Defaults to the one configured for s2Member. * Short of that, defaults to: ``wp_salt()``. * @return str Decrypted string. */ public static function xdecrypt ( $base64 = FALSE , $key = FALSE ) { $base64 = ( is_string ( $base64 ) ) ? $base64 : "" ; /**/ $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "sec_encryption_key" ] : $key ; $key = ( ! is_string ( $key ) || ! strlen ( $key ) ) ? wp_salt ( ) : $key ; /**/ $encrypted = base64_decode ( str_replace ( array ( "-" , "_" , "~" , "." ) , array ( "+" , "/" , "=" , "=" ) , $base64 ) ) ; /**/ $encrypted = preg_replace ( "/^~xe\|/" , "" , $encrypted , 1 , $v1 ) ; $encrypted = ( $v1 ) ? $encrypted : "" ; /* Check validity. */ /**/ for ( $i = 1 , $decrypted = "" ; $i = strlen ( $encrypted ) ; $i ++ ) { $char = substr ( $encrypted , $i - 1 , 1 ) ; $keychar = substr ( $key , ( $i % strlen ( $key ) ) - 1 , 1 ) ; $decrypted .= chr ( ord ( $char ) - ord ( $keychar ) ) ; } /**/ $decrypted = preg_replace ( "/^~xe\|/" , "" , $decrypted , 1 , $v2 ) ; $decrypted = ( $v2 ) ? $decrypted : "" ; /* Check validity. */ /**/ return ( $string = $decrypted ) ; } } } ? [ full view ]s2member\includes\classes\utils-encryption.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:30 pm


]]>
2011-07-09T06:10:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13098&p=25393#p25393 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-encryption.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:10 am


]]>