($encryptedData, $encryptionKey)
| 194 | } |
| 195 | |
| 196 | function decryptData($encryptedData, $encryptionKey) |
| 197 | { |
| 198 | $cipher = 'AES-256-CBC'; |
| 199 | $data = base64_decode($encryptedData); |
| 200 | $ivlen = openssl_cipher_iv_length($cipher); |
| 201 | $iv = substr($data, 0, $ivlen); |
| 202 | $ct = substr($data, $ivlen); |
| 203 | return openssl_decrypt($ct, $cipher, $encryptionKey, OPENSSL_RAW_DATA, $iv); |
| 204 | } |
| 205 | |
| 206 | function fr_get_persistent_tokens_key_file_path(): string |
| 207 | { |
no outgoing calls
no test coverage detected