Hướng dẫn how do i know if php mcrypt is installed? - làm cách nào để biết php mcrypt đã được cài đặt chưa?

  • Giới thiệu
  • Installing/Configuring
    • Yêu cầu
    • Cài đặt
    • Cấu hình thời gian chạy
    • Loại tài nguyên
  • Hằng số được xác định trước
  • McRypt Ciphers
  • Chức năng McRypt
    • mcrypt_create_iv - tạo một vectơ khởi tạo (iv) từ một nguồn ngẫu nhiên
    • mcrypt_decrypt - giải mã mật mã với các tham số đã cho
    • mcrypt_enc_get_algorithms_name - Trả về tên của thuật toán đã mở
    • mcrypt_enc_get_block_size - Trả về khối khối của thuật toán đã mở
    • mcrypt_enc_get_iv_size - Trả về kích thước của IV của thuật toán đã mở
    • mcrypt_enc_get_key_size - Trả về các khóa được hỗ trợ tối đa của chế độ đã mở
    • mcrypt_enc_get_modes_name - Trả về tên của chế độ đã mở
    • mcrypt_enc_get_supported_key_sizes - Trả về một mảng với các khóa được hỗ trợ của thuật toán đã mở
    • mcrypt_enc_is_block_algorithm_mode - kiểm tra xem việc mã hóa chế độ đã mở có hoạt động trên các khối
    • mcrypt_enc_is_block_algorithm - kiểm tra xem thuật toán của chế độ mở có phải là thuật toán khối
    • mcrypt_enc_is_block_mode - Kiểm tra xem chế độ mở đầu ra các khối
    • mcrypt_enc_elf_test - chạy thử nghiệm bản thân trên mô -đun đã mở
    • mcrypt_encrypt - mã hóa bản rõ với các tham số đã cho
    • mcrypt_generic_deinit - Chức năng này khử hóa mô -đun mã hóa
    • mcrypt_generic_init - chức năng này khởi tạo tất cả các bộ đệm cần thiết để mã hóa
    • mcrypt_generic - chức năng này mã hóa dữ liệu
    • mcrypt_get_block_size - có được kích thước khối của mật mã được chỉ định
    • mcrypt_get_code_name - lấy tên của mật mã được chỉ định
    • mcrypt_get_iv_size - Trả về kích thước của IV thuộc kết hợp mật mã/chế độ cụ thể
    • mcrypt_get_key_size - có kích thước chính của mật mã được chỉ định
    • mcrypt_list_algorithms - nhận được một mảng tất cả các mật mã được hỗ trợ
    • mcrypt_list_modes - nhận được một mảng tất cả các chế độ được hỗ trợ
    • McRypt_module_close - Đóng mô -đun McRypt
    • mcrypt_module_get_algo_block_size - Trả về khối khối của thuật toán được chỉ định
    • mcrypt_module_get_algo_key_size - Trả về các khóa hỗ trợ tối đa của chế độ đã mở
    • mcrypt_module_get_supported_key_sizes - Trả về một mảng với các khóa được hỗ trợ của thuật toán đã mở
    • mcrypt_module_is_block_algorithm_mode - Trả về nếu mô -đun được chỉ định là thuật toán khối hoặc không
    • mcrypt_module_is_block_algorithm - Hàm này kiểm tra xem thuật toán được chỉ định có phải là thuật toán khối
    • mcrypt_module_is_block_mode - trả về nếu chế độ được chỉ định xuất ra hoặc không
    • mcrypt_module_open - mở mô -đun của thuật toán và chế độ được sử dụng
    • mcrypt_module_elf_test - Chức năng này chạy thử nghiệm bản thân trên mô -đun được chỉ định
    • mdecrypt_generic - giải mã dữ liệu

Kyle t ¶

4 năm trước

This was posted before by another user but has been downvoted. I just wanted to confirm that we suffered massive performance issues related to mcrypt on CentOS (PHP 5.6.32) that are not present in other flavors of Linux.

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance.

For lower traffic website it can be negligible, but when you start seeing significant traffic/load it will quickly bring down a server.

Maarten bất ổn ¶

12 năm trước

people using phpmyadmin are redirected to this manual if they don't have mcrypt installed. If you want to install mcrypt on debian, first check your php version:

yourserver# php --version

Then install the appropriate version of mcrypt (php5-mcrypt if your php version is 5.x)

yourserver# apt-get install php4-mcrypt
...or...
yourserver# apt-get install php5-mcrypt

Ẩn danh ¶

10 năm trước

These are two simple functions I built for 256-bit encryption/decryption with mcrypt.  I've decided to use MCRYPT_RIJNDAEL_128 because it's AES-compliant, and MCRYPT_MODE_CBC.  (ECB mode is inadequate for many purposes because it does not use an IV.)

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 0

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 1

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 2

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 3

Ghoffman tại salientdigital dot com

11 năm trước

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 4

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 5

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 6

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 7

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 8

Daniel Esteve ¶

5 năm trước

A sampling of 25,000 encrypts/decrypts takes 4-5x longer when running mcrypt on Centos 7 as compared to Ubuntu. Switching out mcrypt for OpenSSL on Centos will result in a massive increase in performance. 9

Làm cách nào để kích hoạt PHP

Đây có lẽ là phương pháp nhanh nhất để kích hoạt PHP-mcrypt trên Windows Server-tất cả những gì bạn cần làm là:..
Tìm PHP. INI (Tệp cấu hình PHP chính).
Mở và tìm kiếm cho; Phần mở rộng = PHP_MCRYPT. DLL).
Unsomment/loại bỏ và lưu PHP. ini ..

Làm cách nào để chạy McRypt?

Answer..
Kết nối với máy chủ qua SSH ..
Cài đặt các phụ thuộc cần thiết: Trên Rhel, Centos và Cloudlinux: ....
Xây dựng phần mở rộng McRypt: ....
Bật tiện ích mở rộng trong cấu hình PHP: ....
Làm mới thông tin về các mô -đun PHP đã cài đặt.....
Để áp dụng các thay đổi tải lại Apache máy chủ web (hoặc nginx nếu Apache không được sử dụng) và dịch vụ PHP-FPM:.

PHP là gì

McRypt là gì?Phần mở rộng McRypt là một sự thay thế cho lệnh Unix Crypt.Các lệnh này phục vụ như một phương tiện để mã hóa các tệp trên các hệ thống UNIX và Linux.Phần mở rộng PHP-MCRYPT đóng vai trò là giao diện giữa PHP và McRypt.a replacement for the UNIX crypt command. These commands serve as a means to encrypt files on UNIX and Linux systems. The php-mcrypt extension serves as an interface between PHP and mcrypt.

McRypt được sử dụng để làm gì?

McRypt cho phép các nhà phát triển sử dụng một loạt các chức năng mã hóa.Nó cho phép người dùng mã hóa các tệp hoặc luồng dữ liệu mà không cần sử dụng máy mật mã.McRypt cho phép người dùng quyết định thuật toán nào bạn xem xét tốt nhất để mã hóa dữ liệu.Nó cũng có chế độ tương thích với Unix Crypt (1) và với Solaris des (1).allows developers to use a wide range of encryption functions. It allows users to encrypt files or data streams without using cryptographers. MCrypt allows user to decide which algorithm you consider the best for encrypting data. It also has compatibility mode with Unix crypt (1) and with solaris des (1).