24/7 Support: 800.608.6482

Get Started

Developer Docs

crypto_sha256

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

crypto_sha256( buffer var, format, result var )

<mvt:assign name="g.return_value" value="crypto_sha256( buffer var, format, result var )" />

Returns an SHA256 hash of buffer. Secure Hash Algorithm. May not be available on platforms running versions of OpenSSL Older than v0.9.8.

Parameters

  • buffer var

    value to hash by reference

  • format

    'hex' or 'binary'. Anything else will result in binary output.

  • result var

    returned sha1 hash value.

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2019 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.