Download the PHP package ogbitblt/cryptography without Composer

On this page you can find all versions of the php package ogbitblt/cryptography. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cryptography

Cryptography

library to encrypt and decrypt data

The intention of this library is to be very simple, and lightweight. No 3rd party libraries are required.

The library uses an approach that will generate a random keyfile each time data is encrypted, this keyfile is then used to decrypt data.

You have the option to either generate a keyfile, send the keyfile to the recipient and then encrypt/decrypt data using that keyfile.

Or, alternatively, you can use the APIs that will generate a new keyfile for each message, and then uses a proprietary method for combining the encrypted data and keyfile into a single data packet and compressing the data into a binary format that is safe to send to the receiver.

While the first method is the most secure, and would be impossible to decrypt without the keyfile, it is sometimes not feasible to send a keyfile securely to the reciever in advance. In those cases, it's fairly secure (though, could eventually be decrypted if someone had this code) to use the combined method, but it is in no way a replacement for enterprise level encryption.

Example: encrypt and then decrypt a string

Thats it!

If you find any bugs or have suggestions I would love to hear them, you can email me at (remove spaces) ogbitblt at pm dot me

Installation Instructions

using composer:


All versions of cryptography with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ogbitblt/cryptography contains the following files

Loading the files please wait ...