AesCrypt: Remove deprecated methods `encryptToBase64()` and `decryptFromBase64()`

This commit is contained in:
Sukhwinder Dhillon 2022-05-02 15:01:51 +02:00 committed by Johannes Meyer
parent 3113dc06ac
commit 8fc50645c4
1 changed files with 0 additions and 32 deletions

View File

@ -244,22 +244,6 @@ class AesCrypt
return $decrypt;
}
/**
* Decode from Base64 and decrypt the given string
*
* @param string $data
*
* @return string The base64 decoded and decrypted string
*
* @deprecated Use decrypt() instead as it also returns a base64 decoded string
*
* @throws RuntimeException If decryption fails
*/
public function decryptFromBase64($data)
{
return $this->decrypt(base64_decode($data));
}
/**
* Encrypt the given string
*
@ -284,22 +268,6 @@ class AesCrypt
return $encrypt;
}
/**
* Encrypt the given string and encode to Base64
*
* @param string $data
*
* @return string encrypted and base64 encoded string
*
* @deprecated Use encrypt() instead as it also returns a base64 encoded string
*
* @throws RuntimeException If encryption fails
*/
public function encryptToBase64($data)
{
return base64_encode($this->encrypt($data));
}
/**
* Decrypt the given string with non Authenticated encryption (AE) cipher method
*