jetpack_sha1_base64

The Jetpack by WordPress.com jetpack sha1 base64 function.

Description

jetpack_sha1_base64( $text ); 

Parameters (1)

0. $text
The text.

Usage

  1. if ( !function_exists( 'jetpack_sha1_base64' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/class.jetpack-signature.php'; 
  3.  
  4. // The text. 
  5. $text = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_sha1_base64($text); 
  9.  

Defined (1)

The function is defined in the following location(s).

/class.jetpack-signature.php  
  1. function jetpack_sha1_base64( $text ) { 
  2. return base64_encode( sha1( $text, true ) );