Node.js has great lib and you can find many php class or libs in node.js now you can use the: node-mcrypt
supported algorithm:
[ 'cast-128', 'gost', 'rijndael-128', 'twofish', 'arcfour', 'cast-256', 'loki97', 'rijndael-192', 'saferplus', 'wake', 'blowfish-compat', 'des', 'rijndael-256', 'serpent', 'xtea', 'blowfish', 'enigma', 'rc2', 'tripledes' ]
get here for usage sample:
1
solved How can I convert this function to nodejs [closed]