Download the PHP package mmdm/sim-crypt without Composer

On this page you can find all versions of the php package mmdm/sim-crypt. 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 sim-crypt

Simplicity Crypt

A library to encrypt/decrypt your data with two keys and two cipher methods.

Install

composer

Or you can simply download zip file from github and extract it, then put file to your project library and use it like other libraries.

Just add line below to autoload files:

and you are good to go.

How to use

Description

To instantiate crypt object, you need two keys. One is the main key and the other is assured key. These keys must be base64 coded strings. You can build them using this website. First generate strong passwords then use base64 encoder/decoder to make them as base64 coded strings and use them for library or you can choose two strings as password and use php function base64_encode() to make them base64.

Available functions

setFirstEncryptionMethod(string $first_method)

You can set first encryption method from valid encryption methods. See openssl_get_cipher_methods() PHP built-in function for supported methods.

getFirstEncryptionMethod(): string

Get first encryption method.

setSecondEncryptionMethod(string $second_method)

You can set second encryption method from valid encryption methods. See openssl_get_cipher_methods() PHP built-in function for supported methods.

getSecondEncryptionMethod(): string

Get second encryption method.

encrypt($data): ?string

This method encrypts a message and return encrypted value or null if $data is an empty string

decrypt($data): ?string

This method decrypts an encrypted message and return actual message or null if $data is an empty string or an error happened during decode step.

hasError()

This function return a boolean indicates operation has error or not.

Note: This method should call after encrypt or decrypt methods to take action on error occurrence.

License

Under MIT license.


All versions of sim-crypt with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-openssl Version *
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 mmdm/sim-crypt contains the following files

Loading the files please wait ....