You are here

function acquia_migrate_get_token in Acquia Connector 6.2

Same name and namespace in other branches
  1. 7.2 acquia_agent/acquia_agent.migrate.inc \acquia_migrate_get_token()

Get upload security token

Parameters

$now:

$return:

$stage:

1 call to acquia_migrate_get_token()
_acquia_migrate_transmit in acquia_agent/acquia_agent.migrate.inc
Perform POST of archive chunk to Acquia hosting environment URL.

File

acquia_agent/acquia_agent.migrate.inc, line 537
Upload to Acquia Cloud.

Code

function acquia_migrate_get_token($now, $return, $secret) {
  return hash_hmac('sha256', $now . $return, $secret);
}