Crypt
0c1557e56a
Fix doc for generateSalt.
...
$cost must be in range 4-31.
11 years ago
Qiang Xue
0d38d6131e
doc fix.
11 years ago
Vladimir
92b9ae382f
Update BaseSecurity.php
...
prevent call strlen function twice
11 years ago
Alexander Makarov
26767735dc
Renamed byte methods, moved path methods back to StringHelper
11 years ago
Alexander Makarov
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
11 years ago
Alexander Makarov
454a9ee52e
fixes #1303 : Security::decrypt now returns null w/o error when null is passed as $data
11 years ago
Qiang Xue
abb349361b
use json format.
11 years ago
Qiang Xue
f09c78aad9
save security keys as a serialized string instead of exported variable.
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
ekerazha
64a33e7849
Fix phpdoc.
11 years ago
ekerazha
cb7921b8a5
Fix StringHelper::substr() call.
11 years ago
ekerazha
6dc69e68b5
Add data padding and key derivation.
11 years ago
Alexander Makarov
b873f9f242
Fixes #915 : helper classes renamed again
11 years ago
Alexander Makarov
76cab3ea64
Renamed base helper classes
11 years ago
Alexander Makarov
bc9a6f3e16
Better strtr arguments format
11 years ago
Alexander Makarov
a8d21805f5
Security::generateRandomKey enhancements:
...
- Equals sign is now replaced with dot.
- Slash is now replaced with dash.
- Better phpdoc.
11 years ago
Alexander Makarov
0284bc4a45
Fixes #875 : Security::generateRandomKey() can now be safely used in URLs
11 years ago
MaximAL
3b8aff5a44
Blowfish cost must be in range 4…31, not 4…30
...
`generateSalt` parameter validation fix.
11 years ago
davert
7f2d2da52c
formatting fix
11 years ago
davert
2a08297ac8
formatting fix
11 years ago
Michael Bodnarchuk
58083f6ed0
A simple patch to get AspectMock and Go Aop working with Yii2
...
This is a very tiny patch that changes nothing in code logic, but is required to get [AspectMock](https://github.com/Codeception/AspectMock ) and Go Aop working with Yii2.
Go Aop is processing all `include` and `require` directives, replacing them with its filters. Unfortunately it doesn't play well with one-liners. So I had to break the code into few lines to get that working.
I was trying to fix this issue in [Go Aop](https://github.com/lisachenko/go-aop-php/pull/78 ) but looks like, the only option is to fix that in Yii2.
AspectMock can dramaticly improve unit testing in Yii2, and I plan to do a blogpost with tutorial about it.
11 years ago
Qiang Xue
a6cd7b72bb
refactored helper organization.
11 years ago
Alexander Makarov
33ca13e498
fixed method name
12 years ago
Qiang Xue
cf47a71db7
Fixes issue #478 : Improved the generation of secret key
12 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago
Qiang Xue
0766fbccb5
Fixes issue #128 .
12 years ago
Vladimir Vyachin
7f5cbce69c
fix SecurityHelper description
12 years ago
ekerazha
14781584f9
Use a string for the mode too
...
The cipher is already specified as string
12 years ago
ekerazha
88bfce96d4
Use AES-192 for encryption
12 years ago
Qiang Xue
9183e83753
restructured helper classes
12 years ago
Qiang Xue
884977a724
renamed util to helpers.
12 years ago
Qiang Xue
339ac9b49f
renamed util to helpers.
12 years ago
Qiang Xue
4fdaab3560
updated file header.
12 years ago
Qiang Xue
e66729840d
Finished cookie.
...
Finished SecurityHelper.
12 years ago
Qiang Xue
b858db7d38
security sip
12 years ago
Qiang Xue
423889977f
doc fix.
12 years ago
Qiang Xue
dac5e99e36
Added PasswordHelper.
12 years ago