use bytes as input for encryption