PHP Classes

File: src/Impl/

Recommend this page to a friend!
  Classes of Kjell-Inge Gustafsson  >  PHP XML Signature  >  src/Impl/  >  Download  
File: src/Impl/
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP XML Signature
Parse and create XML documents signed digitally
Author: By
Last change:
Date: 2 years ago
Size: 1,549 bytes


Class file image Download

DsigSdk common aid support

Kigkonsult\DsigSdk\Impl\ImplCommon static methods


  • __assertString__( data ) * Assert data is a string (i.e. is a scalar) * Return string * Throws InvalidArgumentException
  • __assertFileName__( (string) fileName ) * Assert fileName is a readable file * Throws InvalidArgumentException
  • __assertFileNameWrite__( (string) fileName ) * Assert fileName is a writable file * Throws InvalidArgumentException
  • __getRandomPseudoBytes__( (int) byteCnt, & cStrong ) * Return cryptographically strong number of bytes
  • __getSalt__( \[(int) byteCnt] ) * Return (hex) cryptographically strong salt, default 64 bytes
  • __getAlgorithmFromIdentifier__( (string) identifier ) * Return algorithm from (URI) identifier

  • __base64encode__( (string) data ) * Return base64 encoded string
  • __base64decode__( (string) data ) * Return base64 decoded string
  • __base64UrlEncode__( (string) data ) * Return base64Url encoded string
  • __base64UrlDecode__( (string) data ) * Return base64Url decoded string

  • __isHex__( string ) * Return bool true if string is hex'ed
  • __strToHex__( string ) * Return hex converted from string
  • __hexToStr__( string ) * Return string converted from hex

  • __Hpach__( string ) Return binary string from a 'H' packed hexadecimally encoded (binary) string
  • __HunPach__( string ) Return (mixed) data from a 'H' unpacked binary string


For more information send a message to info at phpclasses dot org.