PHP Classes

How to Implement PHP Hybrid Public Key Encryption Compliant with RFC 9180 Using the Package HPKE PHP: Encrypt and decrypt data using hybrid public keys

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-02-25 (1 hour ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
hpke-php 1.0MIT/X Consortium ...7Cryptography, Security, PHP 7
Description 

Author

This package can encrypt and decrypt data using hybrid public keys.

It provides several classes to encrypt and decrypt data using public and private encryption keys.

The package can also generate public and private keys.

It can also serialize the keys to store the keys as text data.

Picture of Scott Arciszewski
  Performance   Level  
Name: Scott Arciszewski <contact>
Classes: 38 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 29x

Winner: 1x

  Files folder image Files (44)  
File Role Description
Files folder image.github (1 directory)
Files folder imagesrc (9 files, 5 directories)
Files folder imagetests (4 files, 4 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file psalm.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files (44)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (44)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file test.yml Data Auxiliary data

  Files folder image Files (44)  /  src  
File Role Description
Files folder imageAEAD (4 files)
Files folder imageContext (2 files)
Files folder imageInterfaces (6 files)
Files folder imageKDF (1 file)
Files folder imageKEM (1 file, 1 directory)
  Accessible without login Plain text file Context.php Class Class source
  Accessible without login Plain text file Factory.php Class Class source
  Accessible without login Plain text file Hash.php Aux. Configuration script
  Accessible without login Plain text file HPKE.php Class Class source
  Accessible without login Plain text file HPKEException.php Class Class source
  Accessible without login Plain text file Mode.php Aux. Configuration script
  Accessible without login Plain text file Role.php Aux. Configuration script
  Accessible without login Plain text file SymmetricKey.php Class Class source
  Accessible without login Plain text file Util.php Class Class source

  Files folder image Files (44)  /  src  /  AEAD  
File Role Description
  Accessible without login Plain text file AES128GCM.php Class Class source
  Accessible without login Plain text file AES256GCM.php Class Class source
  Accessible without login Plain text file ChaCha20Poly1305.php Class Class source
  Accessible without login Plain text file ExportOnly.php Class Class source

  Files folder image Files (44)  /  src  /  Context  
File Role Description
  Accessible without login Plain text file Receiver.php Class Class source
  Accessible without login Plain text file Sender.php Class Class source

  Files folder image Files (44)  /  src  /  Interfaces  
File Role Description
  Accessible without login Plain text file AEADInterface.php Class Class source
  Accessible without login Plain text file DecapsKeyInterface.php Class Class source
  Accessible without login Plain text file EncapsKeyInterface.php Class Class source
  Accessible without login Plain text file KDFInterface.php Class Class source
  Accessible without login Plain text file KemInterface.php Class Class source
  Accessible without login Plain text file SymmetricKeyInterface.php Class Class source

  Files folder image Files (44)  /  src  /  KDF  
File Role Description
  Accessible without login Plain text file HKDF.php Class Class source

  Files folder image Files (44)  /  src  /  KEM  
File Role Description
Files folder imageDHKEM (3 files)
  Accessible without login Plain text file DiffieHellmanKEM.php Class Class source

  Files folder image Files (44)  /  src  /  KEM  /  DHKEM  
File Role Description
  Accessible without login Plain text file Curve.php Example Example script
  Accessible without login Plain text file DecapsKey.php Class Class source
  Accessible without login Plain text file EncapsKey.php Class Class source

  Files folder image Files (44)  /  tests  
File Role Description
Files folder imageAEAD (3 files)
Files folder imageContext (2 files)
Files folder imageKDF (1 file)
Files folder imageKEM (2 files)
  Accessible without login Plain text file ContextTestCase.php Class Class source
  Accessible without login Plain text file FactoryTest.php Class Class source
  Accessible without login Plain text file HPKETest.php Class Class source
  Accessible without login Plain text file UtilTest.php Class Class source

  Files folder image Files (44)  /  tests  /  AEAD  
File Role Description
  Accessible without login Plain text file AES128GCMTest.php Class Class source
  Accessible without login Plain text file AES256GCMTest.php Class Class source
  Accessible without login Plain text file ChaCha20Poly1305Test.php Class Class source

  Files folder image Files (44)  /  tests  /  Context  
File Role Description
  Accessible without login Plain text file ReceiverTest.php Class Class source
  Accessible without login Plain text file SenderTest.php Class Class source

  Files folder image Files (44)  /  tests  /  KDF  
File Role Description
  Accessible without login Plain text file HKDFTest.php Class Class source

  Files folder image Files (44)  /  tests  /  KEM  
File Role Description
  Accessible without login Plain text file DiffieHellmanKEMTest.php Class Class source
  Accessible without login Plain text file MockDHKEM.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0