Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 125 | All time: 9,440 This week: 455 |
Version | License | PHP version | Categories | |||
paragonie-halite 1.0 | GNU General Publi... | 7.0.0 | PHP 5, Cryptography, Security |
* Alerts
(Exceptions)
* \ParagonIE\Halite\Alerts\CannotCloneKey
* \ParagonIE\Halite\Alerts\CannotPerformOperation
* \ParagonIE\Halite\Alerts\CannotSerializeKey
* \ParagonIE\Halite\Alerts\ConfigDirectiveNotFound
* \ParagonIE\Halite\Alerts\FileAccessDenied
* \ParagonIE\Halite\Alerts\FileModified
* \ParagonIE\Halite\Alerts\HaliteAlert
(Base Exception for all Alerts)
* \ParagonIE\Halite\Alerts\InvalidDigestLength
* \ParagonIE\Halite\Alerts\InvalidFlags
* \ParagonIE\Halite\Alerts\InvalidKey
* \ParagonIE\Halite\Alerts\InvalidMessage
* \ParagonIE\Halite\Alerts\InvalidType
* \ParagonIE\Halite\Asymmetric\Crypto
* \ParagonIE\Halite\Asymmetric\EncryptionPublicKey
* \ParagonIE\Halite\Asymmetric\EncryptionSecretKey
* \ParagonIE\Halite\Asymmetric\PublicKey
* \ParagonIE\Halite\Asymmetric\SecretKey
* \ParagonIE\Halite\Asymmetric\SignaturePublicKey
* \ParagonIE\Halite\Asymmetric\SignatureSecretKey
* Contract
(Interfaces)
* \ParagonIE\Halite\Contract\AsymmetricKeyCryptoInterface
* \ParagonIE\Halite\Contract\CryptoInterface
* \ParagonIE\Halite\Contract\CryptoKeyInterface
* \ParagonIE\Halite\Contract\FileInterface
* \ParagonIE\Halite\Contract\PasswordInterface
* \ParagonIE\Halite\Contract\StreamInterface
* \ParagonIE\Halite\Contract\SymmetricKeyCryptoInterface
* Stream
* \ParagonIE\Halite\Stream\MutableFile
* \ParagonIE\Halite\Stream\ReadOnlyFile
* \ParagonIE\Halite\Symmetric\AuthenticationKey
* \ParagonIE\Halite\Symmetric\Config
* \ParagonIE\Halite\Symmetric\Crypto
* \ParagonIE\Halite\Symmetric\EncryptionKey
* \ParagonIE\Halite\Symmetric\SecretKey
* \ParagonIE\Halite\Password
* \ParagonIE\Halite\Cookie
* \ParagonIE\Halite\EncryptionKeyPair
* \ParagonIE\Halite\File
* \ParagonIE\Halite\Halite
* \ParagonIE\Halite\Key
* \ParagonIE\Halite\KeyFactory
* \ParagonIE\Halite\KeyPair
* \ParagonIE\Halite\Password
* \ParagonIE\Halite\SignatureKeyPair
* \ParagonIE\Halite\Util
Halite is a high-level cryptography interface that relies on libsodium for all of its underlying cryptography operations.
Halite was created by Paragon Initiative Enterprises as a result of our continued efforts to improve the ecosystem and make cryptography in PHP safer and easier to implement.
It's released under the GPLv3 license. Commercial licenses are available from Paragon Initiative Enterprises if you wish to implement Halite in an application without making your source code available under a GPL-compatible license.
master
is the Development Branch (Version 2)See stable for version 1.x.
Halite Version 2 requires PHP 7.0.0 or newer!
Check out the documentation. The basic Halite API is designed for simplicity:
* Encryption
* Symmetric
* `Symmetric\Crypto::encrypt`(`string`, EncryptionKey
, `bool?`): `string`
* `Symmetric\Crypto::decrypt`(`string`, EncryptionKey
, `bool?`): `string`
* Asymmetric
* Anonymous
* `Asymmetric\Crypto::seal`(`string`, EncryptionPublicKey
, `bool?`): `string`
* `Asymmetric\Crypto::unseal`(`string`, EncryptionSecretKey
, `bool?`): `string`
* Authenticated
* `Asymmetric\Crypto::encrypt`(`string`, EncryptionSecretKey
, EncryptionPublicKey
, `bool?`): `string`
* `Asymmetric\Crypto::decrypt`(`string`, EncryptionSecretKey
, EncryptionPublicKey
, `bool?`): `string`
* Authentication
* Symmetric
* `Symmetric\Crypto::authenticate`(`string`, AuthenticationKey
, `bool?`): `string`
* `Symmetric\Crypto::verify`(`string`, AuthenticationKey
, `string`, `bool?`): `bool`
* Asymmetric
* `Asymmetric\Crypto::sign`(`string`, SignatureSecretKey
, `bool?`): `string`
* `Asymmetric\Crypto::verify`(`string`, SignaturePublicKey
, `string`, `bool?`): `bool`
Files (116) |
File | Role | Description | ||
---|---|---|---|---|
doc (4 files, 1 directory) | ||||
src (11 files, 6 directories) | ||||
test (1 file, 1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
autoload.php | Aux. | Auxiliary script | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Data | Auxiliary data |
Files (116) | / | doc |
File | Role | Description | ||
---|---|---|---|---|
Classes (12 files, 5 directories) | ||||
Basic.md | Data | Auxiliary data | ||
Features.md | Data | Auxiliary data | ||
Primitives.md | Data | Auxiliary data | ||
README.md | Data | Auxiliary data |
Files (116) | / | doc | / | Classes |
File | Role | Description | ||
---|---|---|---|---|
Alerts (12 files) | ||||
Asymmetric (7 files) | ||||
Contract (6 files) | ||||
Stream (2 files) | ||||
Symmetric (5 files) | ||||
Config.md | Doc. | Documentation | ||
Cookie.md | Doc. | Documentation | ||
EncryptionKeyPair.md | Doc. | Documentation | ||
File.md | Doc. | Documentation | ||
Halite.md | Doc. | Documentation | ||
Key.md | Doc. | Documentation | ||
KeyFactory.md | Doc. | Documentation | ||
KeyPair.md | Doc. | Documentation | ||
Password.md | Doc. | Documentation | ||
README.md | Doc. | Documentation | ||
SignatureKeyPair.md | Doc. | Documentation | ||
Util.md | Doc. | Documentation |
Files (116) | / | doc | / | Classes | / | Alerts |
File | Role | Description |
---|---|---|
CannotCloneKey.md | Data | Auxiliary data |
CannotPerformOperation.md | Data | Auxiliary data |
CannotSerializeKey.md | Data | Auxiliary data |
ConfigDirectiveNotFound.md | Data | Auxiliary data |
FileAccessDenied.md | Data | Auxiliary data |
FileModified.md | Data | Auxiliary data |
HaliteAlert.md | Data | Auxiliary data |
InvalidDigestLength.md | Data | Auxiliary data |
InvalidFlags.md | Data | Auxiliary data |
InvalidKey.md | Data | Auxiliary data |
InvalidMessage.md | Data | Auxiliary data |
InvalidType.md | Data | Auxiliary data |
Files (116) | / | doc | / | Classes | / | Asymmetric |
File | Role | Description |
---|---|---|
Crypto.md | Data | Auxiliary data |
EncryptionPublicKey.md | Data | Auxiliary data |
EncryptionSecretKey.md | Data | Auxiliary data |
PublicKey.md | Data | Auxiliary data |
SecretKey.md | Data | Auxiliary data |
SignaturePublicKey.md | Data | Auxiliary data |
SignatureSecretKey.md | Data | Auxiliary data |
Files (116) | / | doc | / | Classes | / | Contract |
File | Role | Description |
---|---|---|
AsymmetricKeyCryptoInterface.md | Data | Auxiliary data |
FileInterface.md | Data | Auxiliary data |
KeyInterface.md | Data | Auxiliary data |
PasswordInterface.md | Data | Auxiliary data |
StreamInterface.md | Data | Auxiliary data |
SymmetricKeyCryptoInterface.md | Data | Auxiliary data |
Files (116) | / | doc | / | Classes | / | Stream |
File | Role | Description |
---|---|---|
MutableFile.md | Doc. | Add docs |
ReadOnlyFile.md | Doc. | Add docs |
Files (116) | / | doc | / | Classes | / | Symmetric |
File | Role | Description |
---|---|---|
AuthenticationKey.md | Doc. | Add docs |
Config.md | Doc. | Add docs |
Crypto.md | Doc. | Add docs |
EncryptionKey.md | Doc. | Add docs |
SecretKey.md | Doc. | Add docs |
Files (116) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Alerts (14 files) | ||||
Asymmetric (7 files) | ||||
Contract (6 files) | ||||
Stream (2 files) | ||||
Structure (3 files) | ||||
Symmetric (5 files) | ||||
Config.php | Class | Class source | ||
Cookie.php | Class | Class source | ||
EncryptionKeyPair.php | Class | Class source | ||
File.php | Class | Class source | ||
Halite.php | Class | Class source | ||
Key.php | Class | Class source | ||
KeyFactory.php | Class | Class source | ||
KeyPair.php | Class | Class source | ||
Password.php | Class | Class source | ||
SignatureKeyPair.php | Class | Class source | ||
Util.php | Class | Class source |
Files (116) | / | src | / | Alerts |
File | Role | Description |
---|---|---|
CannotCloneKey.php | Aux. | Auxiliary script |
CannotPerformOperation.php | Aux. | Auxiliary script |
CannotSerializeKey.php | Aux. | Auxiliary script |
ConfigDirectiveNotFound.php | Aux. | Auxiliary script |
FileAccessDenied.php | Aux. | Auxiliary script |
FileModified.php | Aux. | Auxiliary script |
HaliteAlert.php | Aux. | Auxiliary script |
InvalidDigestLength.php | Aux. | Auxiliary script |
InvalidFlags.php | Aux. | Auxiliary script |
InvalidKey.php | Aux. | Auxiliary script |
InvalidMessage.php | Aux. | Auxiliary script |
InvalidSalt.php | Test | Unit test script |
InvalidSignature.php | Test | Unit test script |
InvalidType.php | Aux. | Auxiliary script |
Files (116) | / | src | / | Asymmetric |
File | Role | Description |
---|---|---|
Crypto.php | Class | Class source |
EncryptionPublicKey.php | Class | Class source |
EncryptionSecretKey.php | Class | Class source |
PublicKey.php | Class | Class source |
SecretKey.php | Class | Class source |
SignaturePublicKey.php | Class | Class source |
SignatureSecretKey.php | Class | Class source |
Files (116) | / | src | / | Contract |
File | Role | Description |
---|---|---|
AsymmetricKeyCryptoInterface.php | Aux. | Auxiliary script |
FileInterface.php | Aux. | Auxiliary script |
KeyInterface.php | Aux. | Auxiliary script |
PasswordInterface.php | Aux. | Auxiliary script |
StreamInterface.php | Aux. | Auxiliary script |
SymmetricKeyCryptoInterface.php | Aux. | Auxiliary script |
Files (116) | / | src | / | Stream |
File | Role | Description |
---|---|---|
MutableFile.php | Class | Class source |
ReadOnlyFile.php | Class | Class source |
Files (116) | / | src | / | Structure |
File | Role | Description |
---|---|---|
BlockChain.php | Test | Unit test script |
MerkleTree.php | Test | Unit test script |
Node.php | Test | Unit test script |
Files (116) | / | src | / | Symmetric |
File | Role | Description |
---|---|---|
AuthenticationKey.php | Class | Class source |
Config.php | Class | Class source |
Crypto.php | Class | Class source |
EncryptionKey.php | Class | Class source |
SecretKey.php | Class | Class source |
Files (116) | / | test |
File | Role | Description | ||
---|---|---|---|---|
unit (10 files, 2 directories) | ||||
phpunit.sh | Data | Auxiliary data |
Files (116) | / | test | / | unit |
File | Role | Description | ||
---|---|---|---|---|
Structure (3 files) | ||||
tmp (1 file) | ||||
AsymmetricTest.php | Test | Unit test script | ||
FileLazyTest.php | Test | Unit test script | ||
FileTest.php | Test | Unit test script | ||
HaliteTest.php | Test | Unit test script | ||
KeyPairTest.php | Test | Unit test script | ||
KeyTest.php | Test | Unit test script | ||
PasswordTest.php | Test | Unit test script | ||
StreamTest.php | Test | Unit test script | ||
SymmetricTest.php | Test | Unit test script | ||
UtilTest.php | Test | Unit test script |
Files (116) | / | test | / | unit | / | Structure |
File | Role | Description |
---|---|---|
BlockChainTest.php | Test | Unit test script |
MerkleTreeTest.php | Test | Unit test script |
NodeTest.php | Test | Unit test script |
Files (116) | / | test | / | unit | / | tmp |
File | Role | Description |
---|---|---|
paragon_avatar.png | Output | used in unit testing |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Information page on the Paragon Initiative Enterprises website |