I am Developing a website using Laravel that accept Online payment with Credit card and this must be encrypted before storing into the database I am Using RC4 Encryption to encrypt an integer then store it in my database it throwing an error cause after encryption it looks like that r ���`�q� so weird symbols and logos it cannot be stored as my database collation is utf16 general_ci I used something else but it didn't work [This Error1
Cant store encrypted Integer in Database
197 Views Asked by Kareem Tarek At
1
There are 1 best solutions below
Related Questions in MYSQL
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- window.location.href redirects but is causing problems on the webpage
- Error: local variable 'bramka' referenced before assignment
- Products aren't displayed after fetching data from mysql db (node.js & express)
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- Can't Fix Mariadb & Mysql ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2) On MacOs
- Express Mysql getting max ID from table not working cought in a promise
- failed to upload a table from sql file
- Update a MySQL row depending on the ID in Google Sheets Apps Script
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- How to display the column names which have only unique non-null values in MySQL table?
- mysql query takes too long because of wrong indexes usage
- Multitable joining in Sql
Related Questions in LARAVEL
- Function in anonymous Laravel Blade component
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- Laravel: Using belongsToMany relationship with MongoDB
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
- Resolving ElephantIO ServerConnectionFailureException: Error establishing connection to server
- Undefined function getAdminPanelUrlPrefix()'error in Laravel SaaS project after installing chatmessenger
- PHP Laravel SQLServer could not find driver
- Laravel installation via Composer results in connection timeout error
- Is there a way of showing content in a Statamic antlers template if a user is authenticated?
- Livewire component JS script Uncaught SyntaxError: Unexpected token
- is there a solution to run cron job command in cpanel only from my cPanel host?
- Prevent a webpage from navigating away
- Deploy Flutter and Laravel php mobile app on the host server
- Please how I fetch user account balance, withdrawals, Loans and Transactions to display in the dashboard?
Related Questions in LARAGON
- MySQL "SSL Connection Error System Library" when connecting to SQLyog
- strange behavior laravel 10 when use dd()
- "Your requirement could not be resolved to an installable set of packages"
- Could not find driver (Connection: MySQL, SQL: select * from `invoices`) laravel - vue project
- How can I display the data after the user submits the form in Laravel 10?
- In my laragon I entered my root then I have entered my project I want to enter my terminal but have not worked
- How to solve this error in POSTMAN: "the PHP GD extension is required, but is not installed"
- Configuration File (php.ini) Path: empty
- PgAdmin is not showing in laragon
- I have a problem about the when I connect the laragon in phpmyadmin I can't connect
- Configuring Quick Apps in Laragon
- I can't run php artisan migrate in my project
- I want to Install Laragon in my Bootcamp of Windows in my mac
- exception eaccessviolation in module laragon.exe
- Laragon pick up python logs
Related Questions in RC4-CIPHER
- Disable weak TLS cipher suites on Azure Service bus
- Problems with encoding in RC4 Algorithm
- RC4 Algo with drop
- Unknown ciphertext appended to decrypted plaintext
- How to use SecureRandom instead of using hardcoded bytes array for Java AES Encrytion and Decryption?
- How to encrypt any js file (in browser) using CryptoJS?
- Additional characters in RC4 encryption
- Java 17 Update - Cannot find key of appropriate type to decrypt AP-REQ - RC4 with HMAC
- Cant store encrypted Integer in Database
- TCL rc4 package
- How i solve this rc4 encryption
- How can I decrypt a string and get the algorithm used for the encryption
- Inconsistent encryption and decryption with OpenSSL RC4 in C++
- Connection fail in end user browser after disable weak ciphers and lower tls version in windows server
- RC4 decryption not working properly. Encryption is totally working and I have described my problem in the para below
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Encrypted data is generally binary data, and the characters you show in your question suggest that's the case in your application.
A good solution to your problem is to use base64_encode() to convert your encrypted binary data to text before putting it into MySQL, and base64_decode() to get back the binary data after you read it from MySQL.
Warning: RC4 encryption is not secure. It's been cracked for almost a decade. If you use it to store sensitive credit card data, it is very likely that cybercriminals will steal that data. Your customers won't like that.
If you want to handle credit card data, your best bet is to use a payment service provider like stripe.com, paypal, or one of many others. You don't want credit card numbers, even encrypted ones, stored in your database.