- or download this
my $str = "hello"; # no special chars, 1-127
my $sha256 = Digest::SHA::sha256("abc123"); # bytes 0-255
...
$ua->POST("aurl" ... $buffer ... $HTTPheader ...);
$ua->GET("aurl" ... $buffer ... $HTTPheader ...);
$ua->GET("aurl" ... $unicode_string ... $HTTPheader ...);
- or download this
postdata = urllib.parse.urlencode(data)
encoded = (str(data['nonce']) + postdata).encode()
message = urlpath.encode() + hashlib.sha256(encoded).digest()
- or download this
my $postdata = Encode::encode('UTF-8', "x=1&y=2&z=greektext"); # for e
+xample,
my $p1 = "$nonsense".'&'.$postdata; # yes & needed
...
. $api_sha256; #<< last one is binary
# ... and post after some more massaging