Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Jose
Algorithm
SignatureAlgorithmInterface
PHP Interface Jose\Algorithm\SignatureAlgorithmInterface
Inheritance:
extends
Jose\Algorithm\JWAInterface
Datei anzeigen
Open project: spomky-labs/jose
Public Methods
Method
Description
sign
(
Jose\Object\JWKInterface
$key
,
string
$input
) :
string
Sign the input.
verify
(
Jose\Object\JWKInterface
$key
,
string
$input
,
string
$signature
) :
boolean
Verify the signature of data.
Method Details
sign()
public
method
Sign the input.
public
sign
(
Jose\Object\JWKInterface
$key
,
string
$input
) :
string
$key
Jose\Object\JWKInterface
The private key used to sign the data
$input
string
The input
return
string
verify()
public
method
Verify the signature of data.
public
verify
(
Jose\Object\JWKInterface
$key
,
string
$input
,
string
$signature
) :
boolean
$key
Jose\Object\JWKInterface
The private key used to sign the data
$input
string
The input
$signature
string
The signature to verify
return
boolean