icyapril / cryptolib Goto Github PK
View Code? Open in Web Editor NEWCryptoLib: secure, free & open-source PHP cryptography library for everyone.
License: GNU Affero General Public License v3.0
CryptoLib: secure, free & open-source PHP cryptography library for everyone.
License: GNU Affero General Public License v3.0
"Will return openssl_random_pseudo_bytes with desired length is $strong is set to true." needs to be changed.
Fatal error: Call to undefined function hash_pbkdf2() in CryptoLib.php on line 193.
This is real bummer, as u mentioned in your documentation and in file that it will work with "Requires OpenSSL, MCrypt > 2.4.x, PHP 5.3.0+".
hash_pbkdf2 is available in PHP code from 5.5 version only.
This is a great library but could you provide a little more information on the SHA512 algorithm you are using? Iโm no security expert but is this the SHA3-512 with an output of 512 bits or the SHA-512/256 with a 256 bit output?
Change class version from v0.8 Christmas
to v1.0 Conqueror
in class description in CryptoLib.php
From CryptoLib.php:
<?php
namespace IcyApril;
/**
* Class CryptoLib (v0.8 Christmas)
* Created by Junade Ali
* Requires OpenSSL, MCrypt > 2.4.x, PHP 5.3.0+
*/
...
In PHP 7.1, all mcrypt_* functions will raise an E_DEPRECATED notice.
In PHP 7.1+1 (be it 7.2 or 8.0), the mcrypt extension will be moved out of core and into PECL, where people who really want to install it may still do so if they can install PHP extensions from PECL.
Would you mind if I made this into an apache extension for faster execution speeds? I get between 38-55ms when executing the validateHash function which is fast because I have decent hardware on my machine. But for machines that have less power, it could be faster if written and compiled code such as C.
Hi,
is it possible that this library will be made available for composer? Sucks that I have every library via composer except this awesome one here.
Is the generaterandom string secure enough to be used as an anti-csrf token?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.