Skip to content

Instantly share code, notes, and snippets.

View ayoub-bousetta's full-sized avatar
💻
They see me coding, they hating...

AYOUB BOUSETTA ayoub-bousetta

💻
They see me coding, they hating...
View GitHub Profile
@jenky
jenky / AwsCognitoIdentitySRP.php
Last active April 12, 2024 18:03
AWS Cognito Identity SRP authentication helper
<?php
use Aws\AwsClient;
use Aws\Result;
use Carbon\Carbon;
use phpseclib3\Math\BigInteger;
class AwsCognitoIdentitySRP
{
const N_HEX = 'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1'.
@ayoub-bousetta
ayoub-bousetta / hash
Last active August 29, 2015 14:07
Encrypt customers magento password after data import
<?php
error_reporting(E_ALL | E_STRICT);
$mageFilename = 'app/Mage.php';
if (!file_exists($mageFilename)) {
echo $mageFilename." was not found";
exit;
}
require_once $mageFilename;
Varien_Profiler::enable();