<?php
/**
 * Base64_Encryption
 *
 * @package   Google\Site_Kit\Tests\Core\Storage
 * @copyright 2019 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Tests\Core\Storage;

/**
 * Class Base64_Encryption
 *
 * A dummy encryption implementation for use in testing only.
 *
 * @package Google\Site_Kit\Tests\Core\Storage
 */
class Base64_Encryption {
	/**
	 * Encrypt the given value.
	 *
	 * @param mixed $value
	 *
	 * @return string
	 */
	public function encrypt( $value ) {
		return base64_encode( $value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
	}

	/**
	 * Decrypt the given value.
	 *
	 * @param mixed $value
	 *
	 * @return bool|string
	 */
	public function decrypt( $value ) {
		return base64_decode( $value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
	}
}

<?php
/**
 * Base64_Encryption
 *
 * @package   Google\Site_Kit\Tests\Core\Storage
 * @copyright 2019 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Tests\Core\Storage;

/**
 * Class Base64_Encryption
 *
 * A dummy encryption implementation for use in testing only.
 *
 * @package Google\Site_Kit\Tests\Core\Storage
 */
class Base64_Encryption {
	/**
	 * Encrypt the given value.
	 *
	 * @param mixed $value
	 *
	 * @return string
	 */
	public function encrypt( $value ) {
		return base64_encode( $value );
	}

	/**
	 * Decrypt the given value.
	 *
	 * @param mixed $value
	 *
	 * @return bool|string
	 */
	public function decrypt( $value ) {
		return base64_decode( $value );
	}
}

Remove phpcs ignores for base64 encode/decode.
Remove phpcs ignores for base64 encode/decode.
