support crypto mode
Merge branch 'ifeiteng-crypto-mode'