Implemented encryptions for string object writer