Closed (fixed)
Project:
Computed Field
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2012 at 12:14 UTC
Updated:
23 Apr 2012 at 13:41 UTC
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
Comment #1
pindaman commentedsolved
$display = hash_hmac('sha256', $node_field_item['value'], 'secret');