added setEncrypted function to workspace