相关疑难解决方法(0)

PHP7 Laravel Mcrypt问题

由于Laravel4需要mcrypt扩展,并且PHP7似乎没有mcrypt扩展,是否有任何解决方法可以使用它?

php laravel laravel-4 php-7

41
推荐指数
5
解决办法
6万
查看次数

安装php7.2-mcrypt的问题

因为我正在尝试从PHP 7.2.X版本加载mcrypt扩展模块.
所以我尝试使用与我当前版本的PHP兼容的PECL库,以便安装并遵循以下链接: 在安装过程中在PHP 7.2上安装mcrypt!

以下是在终端上执行某些命令后获得的结果.

root@YYY:/var/www/html/orocrm# apt install php-pear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  php-pear
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 285 kB of archives.
After this operation, 2,107 kB of additional disk space will be …
Run Code Online (Sandbox Code Playgroud)

php ubuntu github pecl mcrypt

31
推荐指数
4
解决办法
10万
查看次数

在VB.NET中加密和在PHP中解密

我试图在PHP和VB.NET中编写一个函数,它使用Triple DES以两种方式传递加密数据.问题是,当我尝试使用PHP解密在VB.NET中加密的字符串时,我收到一条错误消息,指出IV的块大小必须匹配.

我在VB.NET中编写的类如下,并且功能齐全,因为它将完美地加密和解密自己的块.

    Imports System
    Imports System.Text
    Imports System.IO
    Imports System.Security.Cryptography

    Public Class Cipher

        Dim method As TripleDESCryptoServiceProvider
        Dim key As Byte()

        Public Property Password() As String
            Get
                Return System.Text.Encoding.Unicode.GetString(Key)
            End Get
            Set(value As String)
                key = System.Text.Encoding.Unicode.GetBytes(value)
            End Set
        End Property

        Public Function Encrypt(data As String) As String
            Dim ms As New System.IO.MemoryStream

            ' Create the encoder to write to the stream.
            Dim dataBytes() As Byte = System.Text.Encoding.Unicode.GetBytes(data)
            Dim encStream As New CryptoStream(ms, method.CreateEncryptor(), System.Security.Cryptography.CryptoStreamMode.Write)

            ' Use …
Run Code Online (Sandbox Code Playgroud)

php vb.net encryption tripledes

3
推荐指数
1
解决办法
5275
查看次数

标签 统计

php ×3

encryption ×1

github ×1

laravel ×1

laravel-4 ×1

mcrypt ×1

pecl ×1

php-7 ×1

tripledes ×1

ubuntu ×1

vb.net ×1