---
title: "mcrypt library deprecated"
date: "2025-02-05T23:00:49+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94026-mcrypt-library-deprecated"
id: "876c3b0c-5c1d-40b3-a413-dc8a4a2c36ac"
---

The mcrypt extension was deprecated with PHP 7.1 and was removed from PHP 7.2 and moved to an unofficial PECL extension because the mcrypt library is no longer maintained.

**For PHP 7.2+, PHP instead uses [sodium](https://www.php.net/manual/en/book.sodium.php) as a cryptography library**, because of this new PHP code should be written to use sodium rather than mcrypt. Acquia recommends against using the mcrypt library over the [sodium](https://www.php.net/manual/en/book.sodium.php) library. Acquia cloud now fully supports sodium, as seen in our change-log:

[https://docs.acquia.com/cloud-platform/release-notes/2019/#acquia-cloud-october-6-2019-through-october-12-2019](/node/56115)