Skip to content

Commit d69b08e

Browse files
committed
initial commit
0 parents  commit d69b08e

File tree

11 files changed

+2255
-0
lines changed

11 files changed

+2255
-0
lines changed

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain
18+
19+
/tests/ export-ignore
20+
/.gitattributes export-ignore
21+
/.gitignore export-ignore
22+
/.travis.yml export-ignore
23+
/phpunit.xml.dist export-ignore

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear in the root of a volume
35+
.DocumentRevisions-V100
36+
.fseventsd
37+
.Spotlight-V100
38+
.TemporaryItems
39+
.Trashes
40+
.VolumeIcon.icns
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk
48+
49+
/vendor
50+
/composer.phar

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5.9
7+
- 5.5
8+
- 5.6
9+
- 7.0
10+
11+
install:
12+
- composer self-update
13+
- composer install
14+
15+
script:
16+
- php vendor/bin/phpunit tests

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mcrypt_compat Developer: TerraFrost (Jim Wigginton)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright 2007-2016 TerraFrost and other contributors
2+
http://phpseclib.sourceforge.net/
3+
4+
Permission is hereby granted, free of charge, to any person obtaining
5+
a copy of this software and associated documentation files (the
6+
"Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish,
8+
distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so, subject to
10+
the following conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# mcrypt_compat
2+
3+
[![Build Status](https://travis-ci.org/terrafrost/mcrypt_compat.svg?branch=master)](https://travis-ci.org/terrafrost/random_compat)
4+
5+
PHP 5.x polyfill for mcrypt extension.
6+
7+
## Supported algorithms
8+
9+
- rijndael-128
10+
- rijndael-192
11+
- rijndael-256
12+
- blowfish-compat
13+
- des
14+
- blowfish
15+
- rc2
16+
- tripledes
17+
- arcfour
18+
19+
## Unsupported algorithms
20+
21+
- cast-128
22+
- gost
23+
- cast-256
24+
- loki97
25+
- saferplus
26+
- wake
27+
- serpent
28+
- xtea
29+
- enigma
30+
31+
## Supported modes
32+
33+
- cbc
34+
- ncfb
35+
- ctr
36+
- ecb
37+
- nofb
38+
- stream
39+
40+
Although `ncfb` and `nofb` are supported `cfb` and `ofb` are not. Further, mcrypt_compat's `ncfb` implementation has some incompatibles with mcrypt's implementation where `mcrypt_generic` and `mdecrypt_generic` are concerned. The unit tests elaborate.

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "phpseclib/mcrypt_compat",
3+
"description": "PHP 7.1 polyfill for the mcrypt extension from PHP <= 7.0",
4+
"keywords": [
5+
"mcrypt",
6+
"encryption",
7+
"cryptograpy"
8+
],
9+
"license": "MIT",
10+
"type": "library",
11+
"authors": [
12+
{
13+
"name": "Jim Wigginton",
14+
"email": "terrafrost@php.net",
15+
"homepage": "http://phpseclib.sourceforge.net"
16+
}
17+
],
18+
"support": {
19+
"issues": "https://github.com/phpseclib/mcrypt_compat/issues",
20+
"email": "terrafrost@php.net",
21+
"source": "https://github.com/phpseclib/mcrypt_compat"
22+
},
23+
"require": {
24+
"php": ">=5.3.0",
25+
"phpseclib/phpseclib": "~2.0"
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "4.*|5.*"
29+
},
30+
"suggest": {
31+
"ext-openssl": "Will enable faster cryptographic operations"
32+
},
33+
"autoload": {
34+
"files": ["lib/mcrypt.php"]
35+
}
36+
}

0 commit comments

Comments
 (0)