Click here to Skip to main content
15,894,343 members
Everything / Security / Encryption

Encryption

encryption

Great Reads

by Sacha Barber
Azure Service Fabric Demo + IOC, logging, encryption
by Kashif.Mushtaq.Ca
Cross Platform AES 256 GCM Encryption and Decryption (C++, C# and Java)
by Clark Fieseln
Compress, encrypt and hide a secret file inside an audio file (MP3, WAV, OGG, FLAC, ..)
by Asif Bahrainwala
A simple C++ program to generate RSA key pair

Latest Articles

by Federico Di Marco
Fededim.Extensions.Configuration.Protected is an improved ConfigurationBuilder which allows partial or full encryption of configuration values stored inside any possible ConfigurationSource and fully integrated in the ASP.NET Core architecture using Data Protection API.
by Wessel Beulink
What is Azure Virtual Network Encryption? Azure Virtual Network encryption provides a layer of security that encrypts virtual network traffic, specifically between Azure Virtual Machines that communicate securely within a subnet or across different subnets.
by Federico Di Marco
How to enable Bitlocker hardware encryption on self encrypting drives
by adriancs
Communication between Arduino and C# (ASP.NET) by using AES encrypted HTTP GET request

All Articles

Sort by Updated

Encryption 

U 8 May 2024 by Federico Di Marco
Fededim.Extensions.Configuration.Protected is an improved ConfigurationBuilder which allows partial or full encryption of configuration values stored inside any possible ConfigurationSource and fully integrated in the ASP.NET Core architecture using Data Protection API.
N 25 Apr 2024 by Wessel Beulink
What is Azure Virtual Network Encryption? Azure Virtual Network encryption provides a layer of security that encrypts virtual network traffic, specifically between Azure Virtual Machines that communicate securely within a subnet or across different subnets.
8 Mar 2024 by Patrice T
Quote: Let’s say we want some sensitive properties, in one of our data structures, to be encrypted but at the same time it’s key that information is still searchable by the right recipient and here lies the origin of our research. As far as I...
8 Mar 2024 by Pete O'Hanlon
As you have deduced, the database encryption SDK applies at the database itself. If you were looking to apply searching through OpenSearch or ElasticSearch, you wouldn't be able to search these fields there. If you're searching on the DynamoDB...
8 Mar 2024 by betoDavila86
For context, we are working in a SaaS product for clients (even from different companies in the future) to use it as a tool to integrate different AI services (custom and proprietaries) in a secured and controlled manner. Among many more, we have...
22 Dec 2023 by Federico Di Marco
How to enable Bitlocker hardware encryption on self encrypting drives
12 Nov 2023 by oronsultan
Hi! We have an important project in our company whose goal is to perform ON TRANSIT encryption between the client and the backend. The type of encryption we use is RSA 4K. The encryption on the client side is already done nicely. Also for...
19 Sep 2023 by Patrice T
Quote: Hill cipher code does not decode properly How do you know that there is no problem in encoding ? Quote: I have a homework assignment from the university about debugging the Hill code. Debugging is about finding bugs and correcting them....
19 Sep 2023 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
19 Aug 2023 by adriancs
Communication between Arduino and C# (ASP.NET) by using AES encrypted HTTP GET request
14 Aug 2023 by Daniel Ramnath
C++ OpenSSL 3.1 Attack AES-CBC using Padding Oracle Attack, and Timing Attack
9 Jun 2023 by Kashif.Mushtaq.Ca
Cross Platform AES 256 GCM Encryption and Decryption (C++, C# and Java)
25 May 2023 by tbim
I am using C# in Visual Studio 2012 class library assembly, .Net Framework version 4.5.1. I am trying to decrypt a file encrypted using [^]GnuPG. Files are encrypted using a password and without using key files. If possible, I would prefer not to have to install GPG4Win or equivalent on the...
25 May 2023 by tbim
This has been working correctly for me for years. You have to have GPG installed, of course. Recommend placing in try/catch block with logging. Decrypt file: /// /// Decrypts the file using GnuPG, saves it to the file system and...
17 Jan 2023 by Andre Oosthuizen
As per the documentation found HERE, try the following - var source = 'flutter app'; final decrypted = encrypter.decrypt64(source, iv: iv); For normal Direct decryption, you can use the decrypt method directly, as: final plainText =...
17 Jan 2023 by Dan Sep2022
Hello, I'm trying to decrypt a text from MySQL db (stored in BLOB column) and I encountered with this issue where when I tried to decrypt that value I got an error saying Unhandled Exception: type 'String' is not a subtype of type 'Encrypted'...
24 Dec 2022 by Hemil Gandhi
Error in following line, please help Dim num As Short = CShort(1152712705) What I have tried: Googling from last entire week.
24 Dec 2022 by OriginalGriff
A short value has only 16 bits, one of which is used to determine sign: it is positive or negative? As a result, the largest positive number you can fit into a short is 32767. Your value vastly exceeds that and requires an integer (32 bits) or...
19 Dec 2022 by omid amin javaheri
salam Ali this is your answer have good time
19 Dec 2022 by Jayanta Modak
I create a project encrypt and decrypt data in vb.net how to use this code as a function please help it is work only on a textbox i want to send a string value then return encrypt value and when i send encrypt value then send me decrypt value. What I have tried: Private arLetterChars() As...
28 Nov 2022 by Jason Smith 3
I have a simple program that encrypts files in a directory. I can iterate through and everything works perfectly. This is using pub/priv key pair. When decrypting one file at a time, it works as it should. However, if there are multiple files in...
28 Nov 2022 by Jason Smith 3
i was overwriting the key and iv each time. i knew i needed these but looked it over and kept re-using the same one. that is why i was able to only decrypt one file in the directory. only the last file had the correct matching key and iv.
26 Nov 2022 by steveb
const char *filename_crypt = t[i].c_str(); should be const char *filename_crypt = t->c_str();
2 Nov 2022 by RickZeeland
Maybe you can find an example here: Search CodeProject PGP[^] This might be the solution to your problem: PGP Decryption - Unnecessary exception stops execution · Issue #143 · bcgit/bc-csharp · GitHub[^]
1 Nov 2022 by runtime_terror
Hi, I am trying to encrypt a file using a public key (e.g. abc_public.asc) generated through PGPTool, which was shared with the client. The client shared a private key (xyz.asc) in return, in which the PGPTool shows as 'Public' (xyz.asc) and 'Key...
16 Oct 2022 by MR-XAN777
I have a ready python project which makes preferences for restaurant menus. And now, I am about to sell it but before selling, I have to make sure it runs only one device. Can I achieve results by using the python license library or getting...
16 Oct 2022 by Richard MacCutchan
Since Python scripts are in source form it is easy for anyone to modify them. However, there are some services that may help: python licensing software - Google Search[^]
3 Sep 2022 by TimWallace
You can use the TDE feature baked in to SQL Server. Check out Microsoft 's how-to: Transparent data encryption (TDE) - SQL Server | Microsoft Docs[^]
6 Aug 2022 by Rehman Ali Aug2022
I have seen a lot of papers related to AES and triple-DES image encryption where they display the encrypted image results. But I am unable to find how they do it as if the image is encrypted, then it is converted into some unreadable format. Then...
6 Aug 2022 by Richard MacCutchan
The result of encrypting anything is a stream of bytes, many of which are not displayable on a screen or printer. For example if I encrypt the string: "The rain in Spain falls mainly in the plain" the result is ...
15 Jul 2022 by Rida Kamran
I am working on code to encrypts any file to a chosen password and will automatically encrypt any download. An encryption page where you can encrypt or decrypt any file which you need to download. The thing is I have just written encryption code...
15 Jul 2022 by OriginalGriff
So basically, it doesn't work and you have no idea where the problem is: it could be the encryption or decryption section, or the file transfer, or the storage, or ... pretty much anything. So you need to go back to basics and work out what does...
13 Jul 2022 by jbravofaria
Hello all, I've an application that uses Entity Framework 6.0 for SQL Server Data Access. I need to start using encryption for data at rest and data transactions. Can this be achieved? Any tutorial or instructions about how to do it? Thanks in...
30 Jun 2022 by raddevus
Fully working sample code and explanation of everything necessary to create authenticated encryption with AES256.
26 Jun 2022 by Madhu Kumari 2022
getting this error kindly help its urgent this is testing button clicked Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "" at...
26 Jun 2022 by Dave Kreskowiak
Quote: java.lang.NumberFormatException: For input string: "" The error is pretty clear. An empty string cannot be converted to a numerical value. You're next question is going to be "how do I fix it?" Well, that depends. Assuming this is line...
21 Apr 2022 by Member 12208787
I'm trying to create a cipher in C#, I need to take in the encrypted text from a text document and have the decryptions show up in the console and have the correct one export to a text document. This is what I have so far:using System;using System.IO;public class cipher{ ...
21 Apr 2022 by Member 15609765
Quote: char[] enc = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' }; char[] dec = { 'z', 'y', 'x', 'w', 'v', 'u', 't', 's', 'r', 'q', 'p', 'o', 'n',...
19 Feb 2022 by Asif Bahrainwala
A simple C++ program to generate RSA key pair
19 Jan 2022 by Member 15265176
Hi, I am using Michael Chourdakis 's SSL : Convert your Plain Sockets to SSL Sockets in an Easy Way[^] library to enable TLS 1.2 in my windows C++ application. I want to installed ECDSA self signed certificate on client and server, and establish...
17 Nov 2021 by Member 14357788
I encrypt my 'video.mp4' into 'encrypt.mp4' . Now I should decrypt my file and save decrypt file to memory at the start of my application. and play them using DirectX in C#. How to play encrypted video file using DirectX and memoryStream? I dont want to save my video to hard drive (temp folder...
7 Nov 2021 by lfbr0
I'm currently doing an assignment for a college course using Java's JCA. The application takes in a file and encrypts it (or decrypts it) using DES-ECB. I am fully aware that it's not a secure encryption algorithm. It encrypts fine, I believe,...
20 Oct 2021 by sreeyush sudhakaran
I have tried many Examples in Google to PGP Encrypt my Text file , but all of them shows error in some or other ways.I tried the Encryption Tool https://www.igolder.com/PGP/[^] for testing my file.It only works fine in that website only.I hardly need help for 1)How to generate...
25 Sep 2021 by Clark Fieseln
Compress, encrypt and hide a secret file inside an audio file (MP3, WAV, OGG, FLAC, ..)
18 Aug 2021 by OriginalGriff
You will have to talk to the people who run the site: passwords are not generally encrypted at all for security reasons, but salted and hashed so they cannot be decrypted. We certainly couldn't help you decrypt passwords even if the site owners...
22 Jul 2021 by Faraz Taha
Hi All, I want to do store procedure encryption with password, basically want to hide the logic behind the procedures... With Encryption (can easily decrypted by db forge decryptor I tried my self). Procedure Locking will not work as well if it...
22 Jul 2021 by OriginalGriff
WITH ENCRYPTION is the only security you can implement: any other system would make the SP unreadable by SQL Server and render the SP useless and unexecutable! If you want secured processing, you will have to move it to the presentation software.
5 Jul 2021 by vishal_h
What is the best way to implement encrypt and decrypt file content using asp.net core web API. It should be compatible with swagger also. I have tried this with the same way as encrypt string but there is limitation of size length or may be...
5 Jul 2021 by Richard Deeming
Quote: file content should be encrypt at client end ... and should be decrypt at service end What you are describing is precisely what HTTPS does: HTTPS - Wikipedia[^] All requests and responses are encrypted over the wire, and can only be...
27 May 2021 by Member 3654288
I have the public key shared with me in a text file. (BEGIN CERTIFICATE-END CERTIFICATE). How do I encrypt a message in C# using this public key text? Similarly I have my private key in text format.(BEGIN PRIVATE KEY-END PRIVATE KEY). Ho do I...
27 May 2021 by Richard Deeming
There are various suggestions for reading the key from a file in this StackOverflow thread: c# - How to read a PEM RSA private key from .NET - Stack Overflow[^] Essentially, it's easy to do in .NET 5, but a bit of a pain in .NET Framework unless...
6 Mar 2021 by AR547
Hi Programmers,I am facing a problem in my ASP.NET application after I implemented encryption in it. The QueryStringModule.cs file is used in my application.The problem, which was not coming before I included that file in my project is when a user types a text in TextArea (HTML Control),...
11 Jan 2021 by Hemil Gandhi
Dim num5 As Integer = CInt((c And "ÿ"c)) Operator 'And' is not defined for the types 'Char' and 'Char' Dim num7 As Integer = CInt((c >> 8)) Operator '>>' is not defined for types 'Char' and 'Integer'. array2(num4) = CUShort((CInt(b2)
11 Jan 2021 by OriginalGriff
To add to what Richard says: Even if it worked, AND is a bad idea from an encryption point of view. If you AND two one bit values: A-> 0 1 B | 0 0 0 V 1 0 1 You only have two results: zero and one. And three of them are zero, so you have no...
11 Jan 2021 by Richard MacCutchan
You are trying to use logical operators on characters which is not allowed. Secondly you are trying to turn a number into a character which again is not valid. Please read Operators and Expressions - Visual Basic | Microsoft Docs[^].
23 Sep 2020 by j11codep
I am trying to understand the problem that mtls is trying to solve. In the simplest scenario of a regular tls, the client encrypts the shared private key with the public key and sends it to the server. From here communication on both directions...
29 Jun 2020 by Member 12957547
Hi, Can anyone provide an example of aes-ccm in c language What I have tried: I tried to search but no code is working
29 Jun 2020 by OriginalGriff
That's funny: Google finds loads of 'em for me: aes-ccm in c language - Google Search[^] If you have tried several pieces of code and it doesn't work, start by asking the author(s) what is wrong - it's pretty likely that you are making the same...
3 Jun 2020 by OriginalGriff
Quote: Please provide solutions and details We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your...
30 May 2020 by Member 13501882
example: ReverseEngineering/Net/Games at d3fd9da874b696957e01efcfd459bddd30ba5d3b · KenUchicha/ReverseEngineering · GitHub[^] I couldn't find any example for this type obfuscation. Can you illuminate me ? I have looked many obfuscators and...
30 May 2020 by Patrice T
Quote: How do I encrypt my C# source code with ncrypt.dll? Since your source code is basically on your computer and is not distributed with your app, there is no point to encrypt source code. If you want to protect your app from reverse...
14 Apr 2020 by Richard Deeming
That looks like it's an "app password", which allows an application to authenticate without using two step verification. Sign in using App Passwords - Google Account Help[^]
14 Apr 2020 by Isostar13
Hello, A General question for Thunderbird and passwords.I am not an expert in security, encryption or programming. I was trying to access my gmail from chrome. I made 2-3 attempts, but my attempts were unsuccessful. I went to Thunderbird to...
10 Apr 2020 by MadMyche
Most likely the password that you found was the encrypted version of your password.
11 Mar 2020 by phil.o
KeyStore (Java Platform SE 6)[^] You may tryKeyStore keyStore = KeyStore.getInstance("JKS"); instead. Or use Security.getProviders()[^] method to have a clue about registered providers on your system.
11 Mar 2020 by Knowledge_Seeker 2
I have a public Key text file(.txt) containing a public key. How can I encrypt any input string value using this public key in JAVA? Kindly guide me in code for reading the public key text file which may be located in any of the drives and then...
31 Dec 2019 by ali_heidari_
hi...i am using rijndeal to encrypt and decrypt some data! but it gives me this error :Padding is invalid and cannot be removed.i searched much but nothing help me to solve this error! tis is my encrypt/decrypt codes:public string Encrypt(string text) { mainRM = new...
31 Dec 2019 by Member 14703898
Line 52: byte[] plainText = rijndaelCipher.CreateDecryptor().TransformFinalBlock(encryptedData, 0, encryptedData.Length);
9 Dec 2019 by Richard MacCutchan
I do not think that is possible since the actual code to be encrypted is generated by the compiler, and then needs to be modified by the linker. So you cannot encrypt it until it is part of the final exe. But at that point any modification to the content of the executable file could mean the...
9 Dec 2019 by PECoder
I want to keep an important function encrypted in the exe and while running the program, decrypt it at run time from memory. After execution of the function, I will encrypt it back in the memory (so that memory dump can't be analyzed). I am able to decrypt and encrypt it in memory successfully....
9 Dec 2019 by CPallini
Here some insight: assembly - How could I generate and execute machine code at runtime? - Stack Overflow[^].
13 Nov 2019 by PECoder
I am working on PE32+ .text segment encryption. I have added the .stub segment and encrypted the .text segment. I am trying to load the PE sections into memory, decrypt the .text segment there and execute it from memory at runtime. But I'm not able to add this logic to the stub. I found many...
29 Oct 2019 by Alex345098
How to encrypt and decrypt a string in Javascript using any standard Algorithm?
21 Sep 2019 by Member 14599863
I saved the password in the database in encrypted form and this is done but when I am logging from that password(without encryption) it's not logging but when I use the encrypted password then it's logging but I want to login from decrypted password. What I have tried: #here is what i done for...
21 Sep 2019 by OriginalGriff
Don't encrypt passwords - it's very insecure, about on a par with storing it in plain text. This explains why and how to store them: Password Storage: How to do it.[^] - the code is in C#, but it's pretty obvious.
12 Aug 2019 by RickZeeland
Here are some hints on how to do that: C# Playing Video From A Memory Stream Using DirectShow (quartz.dll).[^]
31 Jul 2019 by Danny96
I have the C# code that does encryption with RSA algorithm but I want to give my own p and q, when I try to give for instance; p=11 q=5 manually. When I try to set my values manually inside Create() method, it gives me error at ModInverse() saying System.ArgumentException: 'a is not...
2 Jul 2019 by Member eric67
Hi there , I'm trying to use the AES Class within Visual C# While coding a message, it occcured to me that trying to encode a 16 bytes Block message with AES give 2*16 bytes encrypted blocks ( like my message was 32 bytes long). It does the same for 2* 16 bytes blocks messages, where 3*16...
24 Jun 2019 by Member 14511380
I need to develop an Envelop encryption program using C++ to symmetrically encrypt a plain text file using AES key and then assymetrically encrypt the AES key using a public RSA key. Please suggest a suitable solution for this. What I have tried: I have tried using api, but there...
24 Jun 2019 by Richard MacCutchan
Take a look at Cryptography API: Next Generation - Windows applications | Microsoft Docs[^]. It requires some reading but is fairly straightforward to use.
24 Jun 2019 by OriginalGriff
I'm pretty sure that you don't understand what encryption is, and it would be a good idea if you found out before you started "playing" with code. Quote: 1. Does the Plain text needs to be in hashed format ? No. If you do, you will destroy the data in the plain text file and will be unable to...
20 Jun 2019 by OriginalGriff
I've seen quite a few questions asking how to decrypt SHA and MD5 to obtain the original input, mostly related to "encrypted passwords" and I thought I'd try to explain why the answer is "you can't".
3 Jun 2019 by OriginalGriff
Yes ... but it's not a good idea. Remember, Javascript is interpreted in the browser - so the full code is sent to the client in a human readable form, which can be viewed in detail by anyone with access to an F12 key. So static salt in JS is pretty much the same as "no salt" because it is...
3 Jun 2019 by Prashant D Sonawane
I'm working on AES encryption I want to encrypt a string in JavaScript and using that ciphertext which is generated during encryption I want to decrypt it in JAVA. I want to use static SALT and IV on both side i.e. common SALT and IV. What actually I want is to avoid the use of API calls and...
3 Jun 2019 by F-ES Sitecore
Any keys\secrets you use to encrypt data in javascript are visible by the client which is why people don't user javascript for encryption. To preempt your next question, no you can't stop people looking at the javascript\secrets, you can't disable view source, you can't disable the browser tools.
24 May 2019 by OriginalGriff
Not like that! Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead. When you concatenate strings, you cause problems because SQL receives...
24 May 2019 by dyooshi
Im doing a registration and login form where I already encrypted the password when user entered the password in registration phase. So for login I know that I need to compare the encrypted password in database with the newly entered encrypted password during login. I dont know if im missing some...
21 May 2019 by Member 14416409
Here I want to know what encryption or hashing method may have been used. Input is either "214364506" or "333844433". Output is "jrpen2pj". I am trying to find out what encryption or decryption may been used to convert "214364506" or "333844433" in to "jrpen2pj". Can anyone please help? ...