Mask

Navigation:  Development > Function Reference > Module > Cryptography >

Mask

Previous pageReturn to chapter overviewNext page

Musk a staring. It use to display any sensitive data like Credit Card Number
 

App::Module('Cryptography')->mask(String,[Left],[Right]);
 

 

Parameter

Type

Description

String

Mandatory

String to mask

Left

Optional

Number of Unmask characters on left side.
By default set to 4

Right

Optional

Number Unmask chacraters on right side.
By default set to 4

 

See bellow examples:
 

$return = App::Module('Cryptography')->mask('374556985231245');
pre($return);
 
// Return 3745********1245