|
static | encryptFile ($inputFilename, $outputFilename, Key $key) |
|
static | encryptFileWithPassword ($inputFilename, $outputFilename, $password) |
|
static | decryptFile ($inputFilename, $outputFilename, Key $key) |
|
static | decryptFileWithPassword ($inputFilename, $outputFilename, $password) |
|
static | encryptResource ($inputHandle, $outputHandle, Key $key) |
|
static | encryptResourceWithPassword ($inputHandle, $outputHandle, $password) |
|
static | decryptResource ($inputHandle, $outputHandle, Key $key) |
|
static | decryptResourceWithPassword ($inputHandle, $outputHandle, $password) |
|
◆ decryptFile()
static decryptFile |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
Key |
$key |
|
) |
| |
|
static |
Decrypts the input file, saving the plaintext to the output file.
- Paramètres
-
string | $inputFilename | |
string | $outputFilename | |
Key | $key | |
- Renvoie
- void
- Exceptions
-
Références $key, et KeyOrPassword\createFromKey().
◆ decryptFileInternal()
static decryptFileInternal |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
KeyOrPassword |
$secret |
|
) |
| |
|
staticprivate |
Decrypts a file with either a key or a password.
- Paramètres
-
- Renvoie
- void
- Exceptions
-
◆ decryptFileWithPassword()
static decryptFileWithPassword |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
|
$password |
|
) |
| |
|
static |
Decrypts a file with a password, using a slow key derivation function to make password cracking more expensive.
- Paramètres
-
string | $inputFilename | |
string | $outputFilename | |
string | $password | |
- Renvoie
- void
- Exceptions
-
Références $password, et KeyOrPassword\createFromPassword().
◆ decryptResource()
static decryptResource |
( |
|
$inputHandle, |
|
|
|
$outputHandle, |
|
|
Key |
$key |
|
) |
| |
|
static |
Takes two resource handles and decrypts the contents of the first, writing the plaintext into the second.
- Paramètres
-
resource | $inputHandle | |
resource | $outputHandle | |
Key | $key | |
- Renvoie
- void
- Exceptions
-
Références $key, et KeyOrPassword\createFromKey().
◆ decryptResourceWithPassword()
static decryptResourceWithPassword |
( |
|
$inputHandle, |
|
|
|
$outputHandle, |
|
|
|
$password |
|
) |
| |
|
static |
Decrypts the contents of one resource into another with a password, using a slow key derivation function to make password cracking more expensive.
- Paramètres
-
resource | $inputHandle | |
resource | $outputHandle | |
string | $password | |
- Renvoie
- void
- Exceptions
-
Références $password, et KeyOrPassword\createFromPassword().
◆ encryptFile()
static encryptFile |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
Key |
$key |
|
) |
| |
|
static |
Encrypts the input file, saving the ciphertext to the output file.
- Paramètres
-
string | $inputFilename | |
string | $outputFilename | |
Key | $key | |
- Renvoie
- void
- Exceptions
-
Références $key, et KeyOrPassword\createFromKey().
◆ encryptFileInternal()
static encryptFileInternal |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
KeyOrPassword |
$secret |
|
) |
| |
|
staticprivate |
Encrypts a file with either a key or a password.
- Paramètres
-
- Renvoie
- void
- Exceptions
-
◆ encryptFileWithPassword()
static encryptFileWithPassword |
( |
|
$inputFilename, |
|
|
|
$outputFilename, |
|
|
|
$password |
|
) |
| |
|
static |
Encrypts a file with a password, using a slow key derivation function to make password cracking more expensive.
- Paramètres
-
string | $inputFilename | |
string | $outputFilename | |
string | $password | |
- Renvoie
- void
- Exceptions
-
Références $password, et KeyOrPassword\createFromPassword().
◆ encryptResource()
static encryptResource |
( |
|
$inputHandle, |
|
|
|
$outputHandle, |
|
|
Key |
$key |
|
) |
| |
|
static |
Takes two resource handles and encrypts the contents of the first, writing the ciphertext into the second.
- Paramètres
-
resource | $inputHandle | |
resource | $outputHandle | |
Key | $key | |
- Renvoie
- void
- Exceptions
-
Références $key, et KeyOrPassword\createFromKey().
◆ encryptResourceWithPassword()
static encryptResourceWithPassword |
( |
|
$inputHandle, |
|
|
|
$outputHandle, |
|
|
|
$password |
|
) |
| |
|
static |
Encrypts the contents of one resource handle into another with a password, using a slow key derivation function to make password cracking more expensive.
- Paramètres
-
resource | $inputHandle | |
resource | $outputHandle | |
string | $password | |
- Renvoie
- void
- Exceptions
-
Références $password, et KeyOrPassword\createFromPassword().
◆ getLastErrorMessage()
static getLastErrorMessage |
( |
| ) |
|
|
staticprivate |
Returns the last PHP error's or warning's message string.
- Renvoie
- string
Références null.
La documentation de cette classe a été générée à partir du fichier suivant :