Download the PHP package juanchosl/cryptology without Composer
On this page you can find all versions of the php package juanchosl/cryptology. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juanchosl/cryptology
More information about juanchosl/cryptology
Files in juanchosl/cryptology
Package cryptology
Short Description Little encrypt/decrypt tools in order to crypt, decrypt, sign or verify messages, tests or files using distincts formats with the same way
License MIT
Homepage https://github.com/JuanchoSL/Cryptology
Informations about the package cryptology
Description
This library brings together different reversible encryption systems, keeping the parameterization unified with the idea of being able to change systems without maintenance in the code, simply adapting the constructions of the instances
Instalation
use composer in order to install it
Types
Open SSL
Symmetric Password
The same password in plain text format for encode and decode, all receivers need to know the password
Options
- cipher: a cipher algorithm available, can check the response from openssl_get_cipher_methods()
Examples
Asymmetric PrivateKey/PublicKey
One to one, if the sender encode using the privatekey, the receiver needs to decode using the related public key
Options
- padding: OPENSSL_PKCS1_PADDING or OPENSSL_NO_PADDING
Examples
Pkcs1
For all message types, send to some using public keys but generating an exclusive passphrase for each receiver, any one need to decode using his private key and the passphrase of the message
Options
- cipher: a cipher algorithm available, can check the response from openssl_get_cipher_methods()
- algo: an algorithm method available, can check the response from openssl_get_md_methods()
Examples
You can sign the sended message with your own private key in order to ensure your identity
And verify the received message using the sender certificate
Pkcs7
For SMIME messages, send to some using receivers certificates and decode using the private key. We can sign the messages in order to apply a certification of sender
Options
- cipher: a cipher constant from openssl, by default OPENSSL_CIPHER_AES_256_CBC
Examples
You can sign the sended message with your own private key in order to ensure your identity
And verify the received message using the sender certificate
CMS
For multipurpose messages, send to some using receivers certificates and decode using our own private key and certificate. We can sign the messages in order to apply a certification of sender
Options
- encoding: OPENSSL_ENCODING_PEM, OPENSSL_ENCODING_SMIME or OPENSSL_ENCODING_DER (by default)
- cipher: a cipher constant from openssl, by default OPENSSL_CIPHER_AES_256_CBC
Examples
You can sign the sended message with your own private key in order to ensure your identity
And verify the received message using the sender certificate
Gpg
For use the Open GPG standard
Gnupg
Require the gnupg library installed for php
Examples
You can sign the sended message with your own private key in order to ensure your identity
And verify the received message using the sender certificate
GpgConsole
Require the gpg library installed for console
Examples
You can sign the sended message with your own private key in order to ensure your identity
And verify the received message using the sender certificate
Older systems
We add an older type of encryption in order to be able to mantain our systems
Mcrypt
The same password in plain text format for encode and decode, all receivers need to know the password
Utils
For create a GPG key use the console and follow the instructions, updating the phpunit.xml with the new credentials