You are here

public static function Utilities::stringToHex in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

1 call to Utilities::stringToHex()
Utilities::generateID in src/Utilities.php

File

src/Utilities.php, line 246

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function stringToHex($bytes) {
  $ret = '';
  for ($i = 0; $i < strlen($bytes); $i++) {
    $ret .= sprintf('%02x', ord($bytes[$i]));
  }
  return $ret;
}