I have tried to use sha3 but it return error since invalid address. Here is my code. The sha3 returns 32 bytes address. I wonder is there other function that returns 20 bytes .
var to_add = web3.sha3(str);
web3.eth.sendTransaction({from: '0xC5b0f45d8533909a80eA45Ed2FC42bd36C1Cccac', data:str,to:to_add},function(err, transactionHash)
str
???web3.sha3
seems pretty old BTW. Are you still on web3.js v0.x?