File: doc/Classes/

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  Halite  >  doc/Classes/  >  Download  
File: doc/Classes/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Halite
Perform cryptography operations with libsodium
Author: By
Last change:
Date: 5 years ago
Size: 739 bytes



Class file image Download

Util (abstract)

Namespace: \ParagonIE\Halite

Static Methods


> public static hkdfBlake2b(string $ikm, int $length, string $info = '', string $salt = null): int

This is a variant of HKDF (RFC 5869). Instead of HMAC, it uses a keyed hash function (BLAKE2b) for key splitting.


> public static safeStrlen(string $str): int

Designed to withstand mbstring.func_overload, this function will always return the number of bytes in a string rather than UTF-8 characters.


> public static safeSubstr(string $str, int $start, int $length = null): string

Get a substring of raw binary data (immune to being broken by mbstring.func_overload).

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