16 questions
1
vote
1
answer
541
views
Laravel - How to Encrypt and Decrypt Large Files in Chunks?
I was initially encrypting files directly without using chunks and started encountering an error when trying to encrypt large files:
Allowed memory size of 134217728 bytes exhausted
After some ...
0
votes
1
answer
643
views
Laravel - Validate if email already exists in table users
I have a simple Angular 16 login/register form;
when a user registers in my app, register data is sent via http request to my laravel backend, where i handle user registration.
before i create a new ...
0
votes
3
answers
2k
views
Laravel Encryption/Decryption issue
I am storing users credentials for a 3rd party service in my database. When storing, these are cast to encrypted as below:
protected $casts = [
'enabled' => 'boolean',
'token_is_valid' =>...
1
vote
2
answers
2k
views
how to get the 32bit secret encryption key from laravel env file
I am trying to fetch the secret encryption key from laravel so that I can use it on the mobile app end for decrypting the data. When I run the command in the laravel
php artisan key:generate
It ...
0
votes
0
answers
772
views
How to get one row (Encrypted value) from database with Laravel?
I'm working on a project and I want to use encrypt/decrypt for database values.
I encrypted the 'email' field, and it works fine, but when I want to run this query I got an error.
The query: Users::...
0
votes
2
answers
5k
views
How can I search encrypted data in Laravel using like operator
How can I search data in Laravel using like operator, I have used
encrypt($searchValue);
OR
Crypt::encryptString($searchValue)
But both return full encrypted data but I need searchable data using ...
0
votes
0
answers
467
views
Can i search encrypted data in Laravel
In the Laravel, I have encrypted records in my table and I would like to search these records.
The problem occur when I do search and encrypt again my search term, it encrypts it again generating ...
0
votes
1
answer
336
views
What is the best way to back up a database encrypted with Laravel?
I'm using the package betterapp\LaravelDbEncrypter to encrypt some data in the DB.
If something goes wrong and I lose the access to the server, even if I have a back up of the database in a ...
0
votes
1
answer
2k
views
Laravel: encrypt the uploaded file/image
I am new in laravel, try to encrypt the uploaded file. Here is my controller:
if ($file != null && !empty($file))
{
$userfile = DNEUser::find($lastUserId);
$user_store_pic = $request-&...
2
votes
2
answers
4k
views
Laravel json response returns encrypted data
I'm using an Encryptable trait to encrypt my data for the a Room model.
RoomController (/rooms) returns the decrypted data but ApiRoomController (/api/rooms) does not.
How could I make it returns the ...
0
votes
1
answer
421
views
Is there a way to alter Laravel Encryption algorithm, so it generates the same value against the same string?
I am saving the encrypted user data (including user email which is used to login) with Laravel's built in encryption method.
At login, I have to provide encrypted email for authentication but ...
6
votes
3
answers
4k
views
How to calculate the maximum length of the output of the Laravel encryption method? [duplicate]
Setup
Given the following:
$s = Crypt::encryptString('a');
Is it possible to know, for a string of length 1, the possible range of lengths of $s?
Context
Database storage - need to store an encrypted ...
0
votes
1
answer
493
views
Laravel encryption key "disappears" on page load
I have some trouble with Laravel and Ajax that I haven't been able to Google or Stackoverflow my way out of. Whatever solutions I've seen, I've already accounted for.
Sporadically I'm getting a 500 ...
0
votes
1
answer
695
views
can we rely on laravel encryption for future?
We are building application where we need to store a data encrypted in database and instead of using MySql AES_ENCRYPT and AES_DECRYPT we are plaining to use laravel's inbuilt encrypt & decrypt ...
2
votes
2
answers
434
views
can't overwrite laravel elequent output's id field
I can't overwrite the $user->id in the following code :
$followers_list = follow::where('followed_id',$userId['userId'])
->get();
foreach($followers_list as $follower)
...
0
votes
1
answer
116
views
decrypt random error with Laravel's built-in encryption facilities
I send invitation by mail to users with a encrypted email to know which user respond to invitation. Something like:
Hello, click on this link to start learning: https://example.org/start-learning?e=...