Updating strings and preparing for private key encryption