PHP Classes

PHP String Hidden Characters: Hide strings to avoid appearing in stack traces

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 123 All time: 9,468 This week: 146Up
Version License PHP version Categories
hidden-string 1.0MIT/X Consortium ...5PHP 5, Text processing, Data types, S...
Description 

Author

This package can hide strings to avoid appearing in stack traces.

It can be used to create objects that can set, get and copy string values.

When PHP runs stack trace functions like debug_backtrace the actual string value that is stored in the object does not appear.

Innovation Award
PHP Programming Innovation award nominee
June 2019
Number 10
Many applications need to deal with sensitive information that should not be exposed publicly because it is important to preserve the privacy of people that are the owners of that information.

However, some developers prefer to dump stack traces to logs or even Web pages when an expected errors, so they can see the details of the context of the errors.

This package provides a solution to help hiding sensitive information to be dumped to screen or log files. It can wrap text strings in an object interfaces that do not expose the actual value of the string when the object dump is requested.

Manuel Lemos
Picture of Scott Arciszewski
  Performance   Level  
Name: Scott Arciszewski <contact>
Classes: 37 packages by
Country: United States United States
Age: ???
All time rank: 1173170 in United States United States
Week rank: 44 Up6 in United States United States Up
Innovation award
Innovation award
Nominee: 28x

Winner: 1x

Documentation

HiddenString

Build Status Latest Stable Version Latest Unstable Version License Downloads

This package extracts the HiddenString class originally used in Halite. Requires PHP 7.


  Files folder image Files (8)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetest (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file psalm.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (8)  /  src  
File Role Description
  Accessible without login Plain text file HiddenString.php Class Class source

  Files folder image Files (8)  /  test  
File Role Description
  Accessible without login Plain text file HiddenStringTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:123
This week:0
All time:9,468
This week:146Up