Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Fixed an issue where some hosts do not support MCRYPT_DEV_URANDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcobb committed Jul 1, 2015
1 parent 5be69a0 commit b23478b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: jaredcobb
Tags: ccb, church, api, chms
Requires at least: 3.0.1
Tested up to: 4.2.2
Stable tag: 0.9.0
Stable tag: 0.9.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -51,7 +51,7 @@ alter your theme to *take advantage* of this data.

You'll need to ensure your [group settings](https://support.churchcommunitybuilder.com/customer/portal/articles/361764-editing-groups)
allow the group to be publicly listed. A great way to cross reference if your group is publicly visible is to visit
http://<your-site>.ccbchurch.com/w_group_list.php and see if the missing group shows up there.
http://[your-subdomain].ccbchurch.com/w_group_list.php and see if the missing group shows up there.

== Screenshots ==

Expand All @@ -60,5 +60,8 @@ http://<your-site>.ccbchurch.com/w_group_list.php and see if the missing group s

== Changelog ==

= 0.9 =
= 0.9.1 =
* Fixed an issue where some web hosts were not saving encypted passwords

= 0.9.0 =
* Initial release
2 changes: 1 addition & 1 deletion includes/class-ccb-core-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct() {
$this->plugin_settings_name = 'ccb_core_settings';
$this->plugin_display_name = __( 'Church Community Builder Core API', $this->plugin_name );
$this->plugin_short_display_name = __( 'CCB Core API', $this->plugin_name );
$this->version = '0.9.0';
$this->version = '0.9.1';

}

Expand Down
2 changes: 1 addition & 1 deletion lib/Encryption/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function decrypt($data, $key) {
* @returns string The encrypted data
*/
public function encrypt($data, $key) {
$salt = mcrypt_create_iv(128, MCRYPT_DEV_URANDOM);
$salt = mcrypt_create_iv(128, MCRYPT_RAND);
list ($cipherKey, $macKey, $iv) = $this->getKeys($salt, $key);

$data = $this->pad($data);
Expand Down

0 comments on commit b23478b

Please sign in to comment.