HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/info.viitorcloud.in/wp-content/plugins/easy-wp-smtp/easy-wp-smtp-utils.php
<?php

use ioncube\phpOpensslCryptor\Cryptor;

class SWPSMTPUtils {

    var $enc_key;
    protected static $instance = null;

    function __construct() {
	require_once('inc/Cryptor.php');
	$key = get_option( 'swpsmtp_enc_key', false );
	if ( empty( $key ) ) {
	    $key = wp_salt();
	    update_option( 'swpsmtp_enc_key', $key );
	}
	$this->enc_key = $key;
    }

    public static function get_instance() {

	// If the single instance hasn't been set, set it now.
	if ( null == self::$instance ) {
	    self::$instance = new self;
	}

	return self::$instance;
    }

    static function base64_decode_maybe( $str ) {
	if ( ! function_exists( 'mb_detect_encoding' ) ) {
	    return base64_decode( $str );
	}
	if ( mb_detect_encoding( $str ) === mb_detect_encoding( base64_decode( base64_encode( base64_decode( $str ) ) ) ) ) {
	    $str = base64_decode( $str );
	}
	return $str;
    }

    function encrypt_password( $pass ) {
	if ( $pass === '' ) {
	    return '';
	}

	$password = Cryptor::Encrypt( $pass, $this->enc_key );
	return $password;
    }

    function decrypt_password( $pass ) {

	$password = Cryptor::Decrypt( $pass, $this->enc_key );
	return $password;
    }

}