PluginProbe
The WP Remote WordPress Plugin / 6.47
The WP Remote WordPress Plugin v6.47
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
wpremote / wp_2fa / utils.php

utils.php in The WP Remote WordPress Plugin 6.47, at wp_2fa/utils.php

22 lines 616 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit;
3
4 if (!class_exists('WPRWP2FAUtils')) :
5 class WPRWP2FAUtils {
6 public static function getSecretInfo($info) {
7 $default_info = array('secret' => null, 'is_encrypted' => null);
8
9 if (empty($info) || !array_key_exists('secret', $info) || empty($info['secret']) ||
10 !array_key_exists('is_encrypted', $info) || !is_bool($info['is_encrypted'])) {
11 return $default_info;
12 }
13
14 $secret = base64_decode($info['secret']);
15 if ($secret === false) {
16 return $default_info;
17 }
18
19 return array('secret' => $secret, 'is_encrypted' => $info['is_encrypted']);
20 }
21 }
22 endif;