Skip to content

Instantly share code, notes, and snippets.

@jenky
jenky / AwsCognitoIdentitySRP.php
Last active May 29, 2024 14:05
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'.