Hi all,

thanks for reading.

I have two cck textfields that I show in the computed field.
using http://drupal.org/node/342904

now i am being asked to encrypt the content in this field with sha256.

So instead of showing the text:
yellow
dog

t should show the code as hsa256 hash:
e.g.522c9df4f6bb1e8a420d5dd060b31c2879db9dc470e87376638b82c1437633e8
http://www.xorbin.com/tools/sha256-hash-calculator

Is this possible?
thanks

Comments

pindaman’s picture

Status: Active » Fixed

solved

$display = hash_hmac('sha256', $node_field_item['value'], 'secret');

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.