Skip to content

Instantly share code, notes, and snippets.

@jenky
jenky / AwsCognitoIdentitySRP.php
Last active October 7, 2024 13:17
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'.