node.js - Equivalent to NodeJS buffer() in PHP -
i'm facing following problem. need convert following nodejs code php can't find php function gets job done.
nodejs code:
var secret = 'how today?'; new buffer(secret, 'hex'); new buffer(secret, 'base64');
returns this
<buffer 1e 8c 1a ad ec a8 ba da 1d 6b 2f>
i've looked @ php pack() doesn't seem job done.
any appreciated!
Comments
Post a Comment