Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error: openssl_encrypt()

Open
#450 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
security

Research direction

Start in apps/backup/lib/Service/EncryptService.php around line 210 and inspect how the IV is passed to openssl_encrypt() for AES-256-CBC. Reproduce the backup on the reported Nextcloud and Backup versions, then verify whether the warning can be eliminated without breaking encryption or restore behavior.

Written by the indexing model from the issue text.

Description

Hi there,

while encrypting the Backup I get a lot of these messages in the log (like every 10s):

[PHP] Fehler: Error: openssl_encrypt(): IV passed is only 12 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 at /var/www/nextcloud/apps/backup/lib/Service/EncryptService.php#210

It seems like the Backup still works, I was just wondering what this is about and also found this https://help.nextcloud.com/t/php-openssl-issue-with-backup-kicking-off/138618 but it seems like there aren't any news.

I'm using Nextcloud with Nextcloudpi on a Raspberry Pi 4 (so aes-256-cbc encryption is utilized), Nextcloud 24.0.5 and Backup 1.1.3.

Is this something that can be fixed or should I just ignore it?

Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/backup

All issues in nextcloud/backup

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.