Basic Info | Database | Display | Forms | Monju | Session | Users

array_verify

array_verify($inArray)

Description

array_sign verifies that the signature of a signed array matches the data.

Parameters

$inArray: The input array. [type:array]

Return Values

On Success: True [type:boolean] On Failure: False[type:boolean]

Notes

The signature can be found in the array field 'monju_hash' - this is mainly for internal use, although you may feel free to use it as you see fit.

Examples

if(array_verify($signed)) { echo 'yes!'; } else { echo 'Tampered data!'; }

Dependencies

None

Comments

Support the Docs!

If you notice a mistake in the documentation, instead file a bug report in the issue tracker. Instead use this to add tips and tricks associated with the functions. You can use tags like to keep your comments clear.