Download the PHP package fikoborizqy/bose-crypt without Composer
On this page you can find all versions of the php package fikoborizqy/bose-crypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fikoborizqy/bose-crypt
More information about fikoborizqy/bose-crypt
Files in fikoborizqy/bose-crypt
Package bose-crypt
Short Description Cryptography (Borizqy Secure Encryption) encrypts by private-key you decided, decrypts by private-key you decided and public-key that was generated once you encrypt.
License MIT
Informations about the package bose-crypt
bose-crypt
Encrypt and Decrypt string by giving private-key before doing encryption, and insert public-key & private-key for decrypting.
Installation
You can install this directly from github, or you can install it via composer. But, we recommend you to install this library via composer.
- Install composer
If you don't know how to install composer, you can read this: Install Composer - Make your project directory / go to your project directory.
-
Install by composer
Open your terminal, go to your project directory, and paste this code: - Include the composer
autoload.php
Open your php project file, and put this on top of your code.
How to use?
When you encrypting data, you need to decide private-key for the plain-text. Let's crack on:
-
use Bose Class by the namespace
copy this before you encrypting data! You can change this$class
variable as you want. - Encrypting data
To encrypt data, you need to decide the private-key. This private key will be used to encrypt and decrypt data:
The output will be of encryption above will be like this:
- Decrypting data
To decrypt data, you need to prepare cipher-text, public-key, and private-key.
The output will be of decryption above will be like this: