-
### Description
Since the pack() function does not support variable (minimum) length encodings, I would like to propose two useful functions for direct implementation in PHP.
Currently, you have…
-
A custom utility built inside the binutils tree, bin2hex ( https://github.com/chipKIT32/chipKIT-cxx/blob/master/src45x/binutils/binutils/bin2hex.c ) is missing license information inside the file.
Si…
-
I started playing w/ this as we would like to switch our builds to cmake eventually. Quick question, I see that there is "support" for calling bin2hex... what I'm unsure of is how to invoke it follow…
-
我用php加密的数据,java解密报错(java.lang.IllegalArgumentException: Invalid point encoding 0x-1e),下面是php代码和java代码
php代码
/**
* phpSm2加密
*/
public static function doEncrypt($arguments)
{
$m2EncryptData…
-
-
You create CSRF tokens using random_string which uses mt_rand and this is not secure--the output of mt_rand can be predicted with enough input bytes. Instead of:
https://github.com/joepie91/cphp/blo…
-
Bin2hex is too lengthy. Is it strictly mandated by standard, or is anything other proven insecure ?
[BearerTokenResponse.php#L35](https://github.com/thephpleague/oauth2-server/blob/317f46b7ae5cde8a…
-
In PHP7, mcryot_create_iv() is deprecated.
Due to https://github.com/bshaffer/oauth2-server-php/pull/368/files, using mcrypt_create_iv as the default method to generate random bytes causes a deprecat…
-
I`ve [decided to compare](https://github.com/simplito/elliptic-php/issues/2) basic calculation of public key based on private key against [Curve25519](https://github.com/mgp25/curve25519-php):
```
…
-
Need code to sign cryptosign challenge