MCPcopy Create free account
hub / github.com/error311/FileRise / decryptData

Function decryptData

config/config.php:196–204  ·  view source on GitHub ↗
($encryptedData, $encryptionKey)

Source from the content-addressed store, hash-verified

194}
195
196function 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
206function fr_get_persistent_tokens_key_file_path(): string
207{

Callers 15

handleOidcFlowMethod · 0.85
decryptRequiredMethod · 0.85
authenticateMethod · 0.85
getUserTOTPSecretMethod · 0.85
loadFolderPermissionMethod · 0.85
removeUserMethod · 0.85
getUserPermissionsMethod · 0.85
updateUserPermissionsMethod · 0.85
setupTOTPMethod · 0.85
getTOTPSecretMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected