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

Recommend this page to a friend!
  Info   Documentation   View files (8)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 115 All time: 9,216 This week: 327
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: 25 packages by
Country: United States United States
Age: ???
All time rank: 1374186 in United States United States
Week rank: 20 4 in United States United States
Innovation award
Innovation award
Nominee: 20x

Winner: 1x

Details

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  
File Role Description
src (1 file)
test (1 file)
.travis.yml Data Auxiliary data
composer.json Data Auxiliary data
LICENSE Lic. License text
phpunit.xml.dist Data Auxiliary data
psalm.xml Data Auxiliary data
README.md Doc. Documentation

  Files  /  src  
File Role Description
   HiddenString.php Class Class source

  Files  /  test  
File Role Description
   HiddenStringTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:115
This week:0
All time:9,216
This week:327

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