Moved EncryptBackend to its own package and added tests