Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (116) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-01-14 (9 months ago) | Not enough user ratings | Total: 102 This week: 1 | All time: 8,453 This week: 1,047 |
Version | License | PHP version | Categories | |||
paragonie-halite 1.0 | GNU General Publi... | 7.0.0 | PHP 5, Cryptography, Security |
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.
composer require paragonie/halite
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 |
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 | / | 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 | / | 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 | / | 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 | / | 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 | / | 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 | / | doc | / | Classes | / | Stream |
File | Role | Description |
---|---|---|
MutableFile.md | Doc. | Add docs |
ReadOnlyFile.md | Doc. | Add docs |
Files | / | 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 | / | 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 | / | 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 | / | 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 | / | 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 | / | src | / | Stream |
File | Role | Description |
---|---|---|
MutableFile.php | Class | Class source |
ReadOnlyFile.php | Class | Class source |
Files | / | src | / | Structure |
File | Role | Description |
---|---|---|
BlockChain.php | Test | Unit test script |
MerkleTree.php | Test | Unit test script |
Node.php | Test | Unit test script |
Files | / | 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 | / | 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 | / | test | / | unit | / | Structure |
File | Role | Description |
---|---|---|
BlockChainTest.php | Test | Unit test script |
MerkleTreeTest.php | Test | Unit test script |
NodeTest.php | Test | Unit test script |
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 |
Halite - PHP cryptography library Information page on the Paragon Initiative Enterprises website |