Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Copyright (c) 2016 - 2017 Paragon Initiative Enterprises. Copyright (c) 2014 Steve "Sc00bz" Thomas (steve at tobtu dot com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

File Size: 50 lines (2 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

EncoderInterface:: (2 methods):
  encode()
  decode()


Interface: EncoderInterface  - X-Ref

Interface EncoderInterface

encode($bin_string)   X-Ref
Convert a binary string into a hexadecimal string without cache-timing
leaks

param: string $bin_string (raw binary)
return: string

decode($encoded_string)   X-Ref
Convert a binary string into a hexadecimal string without cache-timing
leaks

param: string $encoded_string
return: string (raw binary)