Skip to content

Instantly share code, notes, and snippets.

View jacqueskang's full-sized avatar

Jacques Kang jacqueskang

View GitHub Profile
@jacqueskang
jacqueskang / generate-smtp-password-for-aws-ses.ps1
Last active September 25, 2024 06:01
Compute AWS SES SMTP password using powershell (could be integrated in CloudFormation template)
$key = "${SecretAccessKey}";
$region = "${AWS::Region}";
$date = "11111111";
$service = "ses";
$terminal = "aws4_request";
$message = "SendRawEmail";
$versionInBytes = 0x04;
function HmacSha256($text, $key2) {