PHP: cybercash_encr - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CyberMUT cybercash_decr

Last updated: Fri, 26 Jan 2007

view this page in

# cybercash_encr

(PHP 4 <= 4.2.3, PECL)

cybercash_encr -- Cybercash encrypt

## Description

array cybercash_encr ( string wmk, string sk, string inbuff )

The function returns an associative array with the elements "errcode" and, if "errcode" is `FALSE`, "outbuff" (string), "outLth" (long) and "macbuff" (string).

add a note User Contributed Notes
cybercash_encr
scott at mha dot ca
02-Oct-2001 07:51
`if you do not know how the MCK works, this will not help you .. but for those of you that know how the MCK works but are unclear as to how to use this function, here are some tips: $wmk is the merchant_key, $sk is the session_key and $inbuff is a urlencoded string of value pairs, i.e. "order-id=12345&amount=USD+12.34&card_number=....." .. the output array contains values for "macbuff" and "outbuff" which, in MCK terms, are the "mac" and "message" values which you must send with the session_key via urlencoded http post .. but both the macbuff and outbuff will have to be processed by cybercash_base64_encode before you can send them .. the rest is pretty much the same as the MCK`
add a note
CyberMUT cybercash_decr

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST