Add 'encryptor' API (a general case encryptor).