Help for this page

Select Code to Download


  1. or download this
    package main
    
    ...
      sig.Write([]byte(byteData))
      return base64.StdEncoding.EncodeToString(sig.Sum(nil))
    }
    
  2. or download this
    #!perl
    use strict;
    use Digest::SHA qw( hmac_sha256_base64 );
    my $digest = hmac_sha256_base64("abcdef", pack "H*",'1234567890');
    print $digest;
    
  3. or download this
    #!perl
    use strict;
    ...
    
    my $step6 = "Basic :".encode_base64($step4,'');
    print "$step6\n";
    
  4. or download this
    // GO code
    package main
    ...
      sig.Write([]byte(byteData))
      return base64.StdEncoding.EncodeToString(sig.Sum(nil))
    }