Method |
Description |
|
decryptFile ( string $inputFilename, string $outputFilename, Defuse\Crypto\Key $key ) |
Decrypts the input file, saving the plaintext to the output file. |
|
decryptFileWithPassword ( string $inputFilename, string $outputFilename, string $password ) |
Decrypts a file with a password, using a slow key derivation function to
make password cracking more expensive. |
|
decryptResource ( resource $inputHandle, resource $outputHandle, Defuse\Crypto\Key $key ) |
Takes two resource handles and decrypts the contents of the first,
writing the plaintext into the second. |
|
decryptResourceInternal ( resource $inputHandle, resource $outputHandle, KeyOrPassword $secret ) |
Decrypts a file-backed resource with either a key or a password. |
|
decryptResourceWithPassword ( resource $inputHandle, resource $outputHandle, string $password ) |
Decrypts the contents of one resource into another with a password, using
a slow key derivation function to make password cracking more expensive. |
|
encryptFile ( string $inputFilename, string $outputFilename, Defuse\Crypto\Key $key ) |
Encrypts the input file, saving the ciphertext to the output file. |
|
encryptFileWithPassword ( string $inputFilename, string $outputFilename, string $password ) |
Encrypts a file with a password, using a slow key derivation function to
make password cracking more expensive. |
|
encryptResource ( resource $inputHandle, resource $outputHandle, Defuse\Crypto\Key $key ) |
Takes two resource handles and encrypts the contents of the first,
writing the ciphertext into the second. |
|
encryptResourceWithPassword ( resource $inputHandle, resource $outputHandle, string $password ) |
Encrypts the contents of one resource handle into another with a
password, using a slow key derivation function to make password cracking
more expensive. |
|
readBytes ( resource $stream, integer $num_bytes ) : string |
Read from a stream; prevent partial reads. |
|
writeBytes ( resource $stream, string $buf, integer $num_bytes = null ) : string |
Write to a stream; prevents partial writes. |
|