All Projects → TonyKaravasilev → CryptoManana

TonyKaravasilev / CryptoManana

Licence: MIT license
An Advanced PHP Cryptography Framework

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to CryptoManana

CryptoKnight
CryptoKnight is a general purpose cryptography desktop app
Stars: ✭ 18 (+20%)
Mutual labels:  hashing, symmetric-key-cryptography
crypton
A simple Dart library for asymmetric encryption and digital signatures
Stars: ✭ 25 (+66.67%)
Mutual labels:  digital-signatures, asymmetric-cryptography
repair
ระบบบันทึกข้อมูลงานซ่อม
Stars: ✭ 24 (+60%)
Mutual labels:  php-framework, php8
oas
ระบบบัญชีออนไลน์ Online Accounting System (OAS)
Stars: ✭ 51 (+240%)
Mutual labels:  php-framework, php8
prvhash
PRVHASH - Pseudo-Random-Value Hash. Hash functions, PRNG with unlimited period, randomness extractor. (Codename Gradilac/Градилак)
Stars: ✭ 194 (+1193.33%)
Mutual labels:  hashing, random-number-generators
tlsh
TLSH lib in Golang
Stars: ✭ 110 (+633.33%)
Mutual labels:  hashing
datagen
Java lib that generates random data (numbers, strings, dates) - mostly to facilitate Randomized Testing.
Stars: ✭ 56 (+273.33%)
Mutual labels:  random-number-generators
hash-checker
Fast and simple application that allows you to generate and compare hashes from files and text
Stars: ✭ 72 (+380%)
Mutual labels:  hashing
docker-nginx-php
Nginx PHP for Docker
Stars: ✭ 121 (+706.67%)
Mutual labels:  php8
alpine-php-fpm
Lightweight and optimised PHP-FPM (PHP 7.4, 8.0, 8.1) Docker images with essential extensions on top of latest Alpine Linux.
Stars: ✭ 53 (+253.33%)
Mutual labels:  php8
framework
Aplus Full-Stack Framework
Stars: ✭ 172 (+1046.67%)
Mutual labels:  php8
VSHG
A standalone addon for GnuPG
Stars: ✭ 18 (+20%)
Mutual labels:  symmetric-key-cryptography
Polyel-Framework
⚡️ Voltis Core: A PHP framework based on Swoole from the ground up
Stars: ✭ 22 (+46.67%)
Mutual labels:  php-framework
HashDepot
.NET library for xxHash, FNV, MurmurHash3 and SipHash algorithms
Stars: ✭ 107 (+613.33%)
Mutual labels:  hashing
BitFact
🛡️ Robust data integrity tool. Prove data, text, & files using the Ethereum blockchain.
Stars: ✭ 42 (+180%)
Mutual labels:  hashing
Hashrat
Hashing tool supporting md5,sha1,sha256,sha512,whirlpool,jh and hmac versions of these. Includes recursive file hashing and other features.
Stars: ✭ 46 (+206.67%)
Mutual labels:  hashing
password-hasher
The PasswordHasher component provides password hashing utilities.
Stars: ✭ 425 (+2733.33%)
Mutual labels:  hashing
php-builder
🐘 Build PHP 8.0 and newer
Stars: ✭ 57 (+280%)
Mutual labels:  php8
balanced
BalanceD is a Layer-4 Linux Virtual Server (LVS) based load balancing platform for Kubernetes.
Stars: ✭ 34 (+126.67%)
Mutual labels:  hashing
MHCLN
Deep Metric and Hash Code Learning Network for Content Based Retrieval of Remote Sensing Images
Stars: ✭ 30 (+100%)
Mutual labels:  hashing

CryptoMañana Framework

GitHub tag (latest SemVer) PHP from Travis config PHP from Travis config GitHub DOI
Build Status Code Coverage PHPDoc Coverage Scrutinizer Code Quality Donate
 CryptoManana Logo

Project Description

CryptoMañana (CryptoManana) is a PHP cryptography framework that provides object-oriented solutions for boosting your project's security. The code base of the project follows the S.O.L.I.D/KISS/DRY principles and implements a few popular Software Design Patterns. The software framework provides a fully functional cryptography model with a vast of cryptography primitives, protocols and services. It is very useful for secure hashing, encryption, key exchange, data signing, random data generation and even more. CryptoMañana is here to make your development faster and more secure!

Developer: Tony Karavasilev

Project Installation

# Install the package at your project via Composer
composer require karavasilev/cryptomanana

# Optionally, check if your system is well-configured
php vendor/karavasilev/cryptomanana/check.php

Project Requirements

  • PHP Version: 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 or 8.0;
  • The spl extension (bundles with PHP >= 5.0.0, added to core since PHP >= 5.3.0);
  • The hash extension (bundled with PHP >= 5.1.2, added to core since PHP >= 7.4.0);
  • The openssl extension (added by default for PHP >= 5.0.0, needs the OpenSSL Library);
  • The OpenSSL Library installed by default with many Operating Systems and LAMP servers;
  • The Composer Dependency Manager for PHP or manual autoloading via src/autoload.php;
  • Optional Extensions: libsodium orsodium, mbstring, zend-opcache and apcu.

Project Documentation

Project Citation via DOI

The CryptoMañana Framework - DOI 10.5281/zenodo.2604693 (as a concept)

Running The Tests Locally (OPTIONAL)

git clone --depth=1 https://github.com/TonyKaravasilev/CryptoManana.git
cd CryptoManana && composer install --profile
vendor/bin/phpunit --testdox --no-coverage
vendor/bin/phpcs

Note: Do not forget to set the sys_temp_dir or upload_tmp_dir location at your php.ini configuration file.

Enable 8-bit Unicode Transformation Format Support via 3rd Party Extension (OPTIONAL)

  • Install and enable the mbstring PHP extension;
  • Configure the encoding and enable CryptoManana to use it:
// Autoload packages via Composer class autoloader
require 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

// Configure PHP internal encoding (default is `UTF-8` for PHP >= 5.6)
ini_set('default_charset', 'UTF-8');

// Configure `mbstring` to use your favourite UTF-8 encoding
mb_regex_encoding('UTF-8');
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');

// Enable the `mbstring` support for CryptoManana components
\CryptoManana\Core\StringBuilder::useMbString(true);

// Start coding hard...

Note: The framework works without the extension and does not enable the usage of it by default for performance reasons.

PHP Backward Compatibility (OPTIONAL)

By default, the CryptoManana Framework provides compatibility for different older PHP versions (polyfill). You can disable the compatibility check (located at src/compatibility.php) via a constant definition. There are not a lot of reasons for disabling this, but you may want your own/others Polyfill logic, etc. The global constant must be defined before autoloading or before the first class usage (access), like:

define('CRYPTO_MANANA_COMPATIBILITY_OFF', true); // const CRYPTO_MANANA_COMPATIBILITY_OFF = 1;

Note: In most cases you do NOT need to do this. The script is called only once per HTTP request (or CLI execution).

Performance And Security Tips (OPTIONAL)

  • Always update your OpenSSL Library to the latest version;
  • Always update your Operating System and Kernel;
  • Always update your PHP and used extensions;
  • Always update your Composer dependencies;
  • Harvest the power of Zend OPcache;
  • Use Composer APCu optimization;
  • Increase the resources for PHP.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].