mcrypt

PHP mcrypt installing and setting up laravel environment issues

巧了我就是萌 提交于 2019-12-10 10:43:57
问题 I am using Mac OS X Lion 10.7.5 and I want to clear one thing I do not want to use XAMPP, MAMP anymore. So I enabled apache, php and installed mysql following this link. This work well. Then I downloaded laravel and installed it following this link. I copied laravel folder inside Sites folder which I created according to first link tutorial. Now when I click on public folder inside laravel folder it gives me following error Unhandled Exception Message: Call to undefined function Laravel

phpmyadmin mcrypt extension is missing

强颜欢笑 提交于 2019-12-10 10:18:45
问题 I'm using CentOS 6 and the latest phpMyAdmin (4.0.1.4) and I noticed the error "The mcrypt extension is missing. Please check your PHP configuration." I went ahead and ran: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm then ran: yum install php-mycrypt Then restarted httpd services and still no luck. Any idea how I can get it to go away? 回答1: According to this post, you should edit /etc/php.d/mcrypt.ini and change ; Enable mcrypt extension module extension

Data corruption: Where's the bug‽

浪子不回头ぞ 提交于 2019-12-10 03:49:09
问题 Last edit: I've figured out what the problem was (see my own answer below) but I cannot mark the question as answered, it would seem. If someone can answer the questions I have in my answer below, namely, is this a bug in Cython or is this Cython's intended behavior, I will mark that answer as accepted, because that would be the most useful lesson to gain from this, IMHO. Firstly, I have to start by saying that I have been trying to figure this out for three days, and I am just banging my

PHP 迁移 Mcrypt 至 OpenSSL 加密算法详解

倖福魔咒の 提交于 2019-12-09 22:52:31
对称加解密算法中,当前最为安全的是 AES 加密算法(以前应该是是 DES 加密算法),PHP 提供了两个可以用于 AES 加密算法的函数簇: Mcrypt 和 OpenSSL 。 其中 Mcrypt 在 PHP 7.1.0 中被 Deprecated,在 PHP 7.2.0 中被移除,所以即可起你应该使用 OpenSSL 来实现 AES 的数据加解密。 在一些场景下,我们不能保证两套通信系统都使用了相函数簇去实现加密算法,可能 siteA 使用了最新的 OpenSSL 来实现了 AES 加密,但作为第三方服务的 siteB 可能仍在使用 Mcrypt 算法,这就要求我们必须清楚 Mcrypt 同 OpenSSL 之间的差异,以便保证数据加解密的一致性。 下文中我们将分别使用 Mcrypt 和 OpenSSL 来实现 AES-128/192/256-CBC 加解密,二者同步加解密的要点为: 1、使用何种填充算法。Mcrypt 自动使用 NUL("\0"),OpenSSL 自动使用 PKCS7。 2、否对数据做了base64编码处理。Mcrypt 默认不使用 base64 编码(虽然我们很建议使用),OpenSSL 默认使用 base64编码。 协同好以上两点,就可以让 Mcrypt 和 OpenSSL 之间一致性的对数据进行加解密。 AES 概述 AES

Decrypting PHP MCRYPT_RIJNDAEL_256 in Ruby

六月ゝ 毕业季﹏ 提交于 2019-12-09 21:21:40
问题 I have a database filled with encrypted passwords that I need to decrypt in Ruby for a platform change. How can I port this PHP code to Ruby? Have tried to use OpenSSL in Ruby with AES_256 but getting 'Bad Decrypt' errors and also errors that my key ($salt) isn't long enough. In the example below, $salt is a 25 character string. This is the PHP decryption function: function decrypt_password($text, $salt) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $salt, base64_decode($text), MCRYPT

centos 7 安装 php7 & php-fpm

99封情书 提交于 2019-12-09 11:29:07
1.下载源代码 2. 添加 epel 源 3.安装依赖 yum install gcc bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel gmp-devel libjpeg-devel libpng-devel 4.创建用户 # groupadd www # useradd -g www -s /sbin/nologin -M www 5.编译安装 收集的比较全的编译选项: ./configure \ --prefix=/usr/local/php7 \ --with-config-file-path=/usr/local/php7/etc \ --enable-inline-optimization \ --disable-debug \ --disable-rpath \ --enable-shared \ --enable-opcache \ --enable-fpm \ --with-fpm-user=www \ --with-fpm-group=www \ --with-mysql=mysqlnd \ -

Difference in PHP encryption from iOS and .NET

孤街醉人 提交于 2019-12-09 02:09:31
问题 I have an issue when communicating encrypted between iOS and PHP. I have an app that encrypts a string and sends it to a PHP server that decrypts it. That part works just fine. Now the PHP server needs to send an encrypted response back to the app, which seems to be causing a bit more gray hair. The issue is, that when I encrypt a string in PHP it looks different from the same string encrypted in iOS and even .NET - obviously all places use the same algorithm, key and IV. I use Rijndael 128

how long is the default key size used by mcrypt_blowfish?

别等时光非礼了梦想. 提交于 2019-12-08 14:08:57
问题 I'm going to use Blowfish cipher for my project in PHP (mcrypt_blowfish). But I have a question regarding the used of mcrypt_blowfish, how long is the deafult key size that was used by this mode of encryption in PHP?? Some other cipher that was support by libmcrypt had a declared key size, like : MCRYPT_RIJNDAEL_128 --> 128 bit key MCRYPT_RIJNDAEL_192 --> 192 bit key MCRYPT_RC6_128 --> 128 bit key MCRYPT_RC6_192 --> 192 bit key But how long is the deafult key size for mcrypt_blowfish?? Thx

php mcrypt equivalent for sagepay on a windows server

ⅰ亾dé卋堺 提交于 2019-12-08 07:35:23
问题 Our company primarily used vbscript until fairly recently, when we started changing to PHP. Upon trying to integrate a SagePay form kit into one of our projects I came across this obstacle. We are on a windows 2008 server, and this cannot be changed. The server does not contain the mcrypt library and our server host will not install it due to it being a shared platform. The problematic line comes from a SagePay form kit that you use to pay for things with SagePay. Hopefully some of you will

MembershipProvider.GetPassword algorithm

自闭症网瘾萝莉.ら 提交于 2019-12-08 05:32:00
问题 We are converting an ASP site (using DotNetNuke) to a new PHP site. The only thing we have right now is a full export of the existing database. One of the tables is called "aspnet_Membership" and contains the following fields: Password (looks like base64) PasswordFormat (always value 2) PasswordSalt (looks like base64) PasswordQuestion (always empty) PasswordAnswer (always empty) We would like to decode these passwords and hash them to fit our own framework. From what I understand from the