Fixing encryption for Twitter