Increase salt from 9 to 12 chars to move along with technology Replace all backslashes with 2. This means we escape PHP and then JS to ensure we will maintain \n instead of ending up with a line break