Are there any methods to utilize javascript or ajax for encrypting file uploads securely? If so, could you provide a sample code snippet or direct me to a functional example? ...
Currently, I am developing a Python RESTful API and facing the challenge of transmitting bytes-encoded data (specifically encrypted data using a public RSA key from the rsa package) over the network in JSON format. This is what the scenario looks like: & ...
Despite my extensive search efforts on Google, I have not been able to find a direct and clear answer to my question. Therefore, a simple yes or no response would be greatly appreciated. I have been tasked with creating an "AES-256 symmetric (also known a ...
I'm working on securely passing a JSON string between two web applications via URL parameters (for an internal SSO server). My goal is to encrypt the user payload object JSON string with a pre-shared key, send the user to the service provider application ...
My main objective is to secure the POST body requests sent from my web application to my service by encrypting them. This encryption process takes place within a filter in my system. However, I've encountered an issue related to content length. When ...
I currently have encrypted files in C# using DES and PKCS7 encryption. My objective is to decrypt these files in Node JS. The decryption code in C# that I am using appears like this: public string SSFile_Reader( string fileToDecrypt ) { DESCryptoService ...
I need to develop a function that encrypts a user's message and returns the encrypted string based on specific rules: Alphabetic Uppercase Character [A-Z]: Convert to lowercase and add a ^ character at the end Alphabetic Lowercase Character [a-z]: R ...
I am looking to create an encryption method for retrieving variables passed in a URL and for making asynchronous calls. Here is an example: $textToEncrypt = "Hello World"; $encryptionMethod = "AES-256-CBC"; $secretHash = "cVb67YtfAz328oOikl96vBn"; $iv = ...
I have encrypted a value using my public key but I am unable to decrypt it with my private key. Is there something wrong with my code? Here is the script that I am using: <?php $encrypted = "Q4tmeBDTS+M2UriF6zNBJYrWcXJuyclWVAFLZaOSNwTS0FOkqd/7yQ9KrwL ...
I've been attempting to link my website to a payment platform that necessitates a specific validation key which is initially md5 hashed and then base64 encoded. The instructions guide provided an example with a given input string: input EX123123456100.00 ...
Currently, I am in the process of decrypting a password retrieved from a table that was manually decrypted by using Python's cryptography.fernet class. The manual encryption for the password is as follows: key = Fernet.generate_key() f = Fernet(key) ...
In the process of replacing current encryption and decryption functions that utilize mcrypt blowfish cbc mode with their openssl counterparts. It is crucial for the new methods to be compatible with older values. The decryption operation is functioning c ...
Can anyone recommend a reliable symmetric-key encryption algorithm that works seamlessly with both JavaScript and Java programming languages? I attempted to implement one myself, but encountered some complications related to encoding. ...
Looking for advice on scraping a website that requires login. The current code saves username and password in a config JSON file, which poses a security risk if the file is accessed by unauthorized individuals. Is there a more secure method, such as encr ...
I am attempting to encrypt a .php file using phpBolt. It works fine when the file contains only PHP code, but it fails when there is a mixture of HTML and PHP. Here is the encryption code: <?php /** * src : source folder * encrypted : Output folde ...
I'm currently developing a web application that requires loading images into a canvas object, followed by extensive manipulation. My goal is to conceal the original source image file (a jpeg) in such a way that users on the client side cannot access it usi ...
I am trying to fetch a JSON string from a specific URL, but the string is encrypted and saved as a .txt file. I need to decrypt this string within my application. Below is the HttpWebRequest code I am using to retrieve the response string: public string ...
At the moment, I am making use of the multer library to store files on the File system. This particular application is built using Node and Express. I currently have a process in place where I save the file on the server first and then encrypt it. After e ...
I am in the process of integrating a PHP encryption function into a ReactJS application. I have a requirement to transmit the token in a specific format that was generated using the OpenSSL library function (openssl_encrypt). It has been observed that the ...
Having trouble encrypting passwords with this code in PHP 5.6 or later versions? I need a new code that uses the same algorithm, please advise. Could you provide me with alternative code that maintains the current encryption algorithm? <?php class Enc ...
I am looking to securely encrypt and decrypt a byte[] in a C# API endpoint, then convert the decrypted document to base64 for viewing in a PDF viewer within an Angular 14 app. I came across this helpful guide on Stack Overflow [https://stackoverflow.com/q ...
I'm attempting to adapt the code from the following link to Python using boto3: https://github.com/gilt/node-s3-encryption-client/issues/3 However, I've hit a roadblock when trying to retrieve the plaintext from KMS with the code below: metadat ...
While I have a solid background in back-end coding languages like Java and Python, the task at hand requires integrating this code into a website. The backend code comprises various methods and classes to encrypt text messages using encryption techniques ...
For my mobile client, I am using Xamarin, with node.js as my backend and MongoDB as the database. The main issue I am facing is how to securely store user data in the database. If I only do server-side encryption, there is a risk of hackers intercepting th ...
After implementing a login system, I took steps to enhance its security. First, I generated a salt for the passwords: $salt = openssl_random_pseudo_bytes(1024); file_put_contents("salt.txt", $salt); Then, I hashed the passwords using the whirlpool algori ...
In my Laravel project, I am working with encrypted records using the php-encryption library before storing them in a Mysql database. Currently, when searching for a record based on an encrypted value, I loop through all the records to find a match, but thi ...
I am facing a simple problem that I can't solve due to my lack of knowledge and have not been able to find any solution online. What I want to achieve is: Create a "value 1" from an array of integers. Generate a random "value 2". Check if the rando ...
Within my Angular 2 application (utilizing the SystemJS module manager and Typescript as the scripting language), I am in need of importing an npm module for encryption purposes. This could be either Crypto-JS, Forge-JS, or any alternative that serves the ...
Our team is working on a project using the Symfony2 framework and we plan to sell the application to clients. To protect our source code from being accessed by customers, we are exploring options for encrypting it. However, we have encountered difficulties ...
Exploring a new project idea, I am interested in supporting the SASL Mechanisms for authentication, particularly PLAIN and DIGEST-MD5. I am curious about how to securely store users' passwords when implementing these two authentication methods. When ...
I've been utilizing the NodeJS Crypto module for encryption and decryption with RSA on the backend, while using JSencrypt for frontend RSA operations. The problem arises when I attempt to encrypt data on the frontend using a public key, resulting in an er ...
I am faced with the task of managing hundreds of documents, each consisting of multiple pages. Users need the ability to search within a document for specific words or sentences. My goal is to retrieve all files that contain the searched text. Currently, ...
I'm currently developing an application that necessitates the user to be in close proximity to a specific GPS location. At present, I am obtaining their location every 30 seconds, transmitting it to my server, checking if they are near the desired location ...
I have a challenge with encrypting/decrypting data using a public key that is stored in a file. The code snippet below illustrates my approach: encryptWithKey (toEncrypt, publicKeyPath) { var publicKey = fs.readFileSync(publicKeyPath, "utf8"); ...
In my application, I have specific fields within certain objects that require encryption when serialized for storage in the database. While these fields do not need to be encrypted while in memory, I wanted to implement a transparent solution within the c ...
I am currently utilizing the python-gnupg library to decrypt a file using a self-generated key. Strangely, the following code executes successfully on Windows: import gnupg import os key_data = '''-----BEGIN PGP PRIVATE KEY BLOCK----- <key data here> ...
I am having difficulty with encrypting data in AngularJS and decrypting it in NodeJS. After referring to a similar query on StackOverflow, I attempted to implement CryptoJS in my AngularJS application using the following code: Angular CryptoJs Encryption ...
I am attempting to encode a user input file using a random ascii key. I have managed to generate the random key and convert the file contents into ascii, but I am struggling with how to apply the key for encryption. I have tried several approaches, but my ...
Here is the URL that needs to be encrypted: <a class="btn btn-success btn-sm btn-block" href="@Url.Action("myAction", "myController")?Id={{repeat.Id}}&HistoryId={{repeat.HistoryId}}" ng-cloak>View History</a> I am seeking guidance on enc ...
I am in need of creating two functions to obscure and reveal a string, following the structure below: string encrypt(string originalText, string key) string decrypt(string scrambledText, string key) I require these functions to be concise and easy t ...
Decryption is functioning using php/openssl, and I can successfully retrieve my plain data. Here is the specific call that is defined: <?php function decryptString($data, $key) { return base64_decode(openssl_decrypt(base64_decode($data), "AES- ...
Currently, I am in the process of decrypting the data that is housed in my database before it gets sent to the client side. To achieve this, I have incorporated the use of the built-in crypto module along with AES-256-GCM encryption for safeguarding the d ...
In my current controller code, I am displaying a set of records. Here is the snippet: public function view() { $title = "View Guardian Information"; $vPa = DB::table('dbo_guardianinformation') ->join('dbo_cities ...
In an effort to protect my database information, I have implemented encryption using simple mcrypt functions for handling JSON data. Here are the functions I've created: function encrypt($key, $data){ $encrypted_data = mcrypt_cbc(MCRYPT_RIJNDAEL_192, ...
I've encountered a challenge trying to make existing legacy Python code encrypt/decrypt data the same way as NodeJS. Although the first 16 characters are correctly decoded, I'm facing issues with the rest of the process. Here's the Python code snippet: f ...
Hey there! I have a question about the security of using the jQuery.post function in jQuery to send a user's login information to a PHP script. Here is the piece of code I am considering: $("#login_form").submit(function() { var unameval = $("#use ...
In my quest to encrypt and decrypt data in react-native, I embarked on using the crypto node module by incorporating it into my react native project through browserify. While attempting encryption with the code snippet provided below, an error surfaces sta ...
Recently, I've come across an encrypt function that I am struggling with: def encrypt(password): for i in (password): not_Encrpyted = ''.join(dict_Chiper[i] for i in password) Encrpyted = ''.join(reversed(not_Encrpyted)) return Enc ...
Currently, I am in the process of converting Rijndael decryption from C# to NodeJS. The Key (or Passphrase) being used is 13 characters long, while the IV used is 17 characters long. Note: The length choice for both Key and IV is beyond my control Disp ...
I cannot predict the outcome. Here is how I encrypt: const METHOD = "AES-256-ECB"; public $key; public function encrypt($string,$key){ return strtr(base64_encode(openssl_encrypt($string, $this::METHOD, hash('sha256', $key, true))), &ap ...
I am looking to create a Node.js daemon that can operate across multiple computers while facilitating message exchange between the daemons. Security is paramount, so I want to ensure the communication is encrypted. However, I am uncertain about which encry ...