403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.226.94.88
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/DTO/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/DTO/PublicKey.php
<?php

namespace iThemesSecurity\WebAuthn\DTO;

use iThemesSecurity\Strauss\Cose\Key\Key;
use iThemesSecurity\Strauss\ParagonIE\ConstantTime\Base64UrlSafe;

final class PublicKey implements \JsonSerializable {

	/** @var array */
	private $data;

	public function __construct( array $data ) {
		$this->data = $data;
	}

	public static function hydrate( array $data ): self {
		$decoded = [];

		foreach ( $data as $k => $v ) {
			$decoded[ $k ] = Base64UrlSafe::decode( $v );
		}

		return new self( $decoded );
	}

	public static function from_cose_key( Key $key ): self {
		return new self( $key->getData() );
	}

	public function get_data(): array {
		return $this->data;
	}

	public function jsonSerialize(): array {
		$encoded = [];

		foreach ( $this->data as $k => $v ) {
			$encoded[ $k ] = Base64UrlSafe::encode( $v );
		}

		return $encoded;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit