Added configuration options for salt and padding.