PHP 클래스 ParagonIE\EasyRSA\EasyRSA

상속: implements ParagonIE\EasyRSA\EasyRSAInterface
파일 보기 프로젝트 열기: paragonie/easyrsa 1 사용 예제들

공개 메소드들

메소드 설명
decrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
encrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
sign ( string $message, PrivateKey $rsaPrivateKey ) : string Sign with RSASS-PSS + MGF1+SHA256
verify ( string $message, string $signature, PublicKey $rsaPublicKey ) : boolean Verify with RSASS-PSS + MGF1+SHA256

보호된 메소드들

메소드 설명
rsaDecrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string Decrypt with RSAES-OAEP + MGF1+SHA256
rsaEncrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string Decrypt with RSAES-OAEP + MGF1+SHA256

메소드 상세

decrypt() 공개 정적인 메소드

Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
public static decrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string
$ciphertext string
$rsaPrivateKey PrivateKey
리턴 string

encrypt() 공개 정적인 메소드

Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
public static encrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string
$plaintext string
$rsaPublicKey PublicKey
리턴 string

rsaDecrypt() 보호된 정적인 메소드

Decrypt with RSAES-OAEP + MGF1+SHA256
protected static rsaDecrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string
$ciphertext string
$rsaPrivateKey PrivateKey
리턴 string

rsaEncrypt() 보호된 정적인 메소드

Decrypt with RSAES-OAEP + MGF1+SHA256
protected static rsaEncrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string
$plaintext string
$rsaPublicKey PublicKey
리턴 string

sign() 공개 정적인 메소드

Sign with RSASS-PSS + MGF1+SHA256
public static sign ( string $message, PrivateKey $rsaPrivateKey ) : string
$message string
$rsaPrivateKey PrivateKey
리턴 string

verify() 공개 정적인 메소드

Verify with RSASS-PSS + MGF1+SHA256
public static verify ( string $message, string $signature, PublicKey $rsaPublicKey ) : boolean
$message string
$signature string
$rsaPublicKey PublicKey
리턴 boolean