Click here to Skip to main content
15,898,816 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 

5 Oct 2010 by #realJSOP
One way to create a completely random encryption key, and sharing it with a client application
9 Feb 2011 by #realJSOP
It's part of the file system, so I would look at the System.IO namespace for that kind of stuff. The FileInfo.GetAccessControl method looks interesting.
16 Mar 2011 by #realJSOP
The answer to your question is YES. There are 3rd party libs abvailable, and some open-source stuff. Learn the power of google, and all will become clear.
6 Oct 2016 by #realJSOP
How are you encrypting the connection string?The way I do it is encrypt the string, and copy the encrypted version into the config file. Then, I have an assembly that I can distribute that knows how to decrypt it (it contains the encryption info). If you want to decrypt the encrypted string,...
17 Jul 2018 by #realJSOP
You can use multi-threading to handle the encryption (fire off a few threads at a time so as not to bind the CPU up). You cannot encrypt a folder. You have to encrypt the files inside the folder. Here's a CP article that talks about AES encryption: FIPS Encryption Algorithms and...
26 Jan 2015 by 1337Architect
Handy classes to use the .NET Encryption/Decryption
13 Jul 2012 by _Amy
Hi,SHA1 is not an encryption algorithm, so it is not possible to decrypt it. As seventheyejosh just stated, it is a hash (checksum.) And it is one-way and cannot be undone.So, you Can't, Hash Function[^] are one way functions. this is why it is used for passwords, because you can't get the...
17 Jul 2012 by _Amy
Hi,Here you can find an article on Encrypt and Decrypt Data with C#[^].--Amit
3 Sep 2014 by _Asif_
This could be your starting point.Triple DES encryption wrapper[^]
3 Jan 2018 by _awatts
try Hashids - generate short unique ids from integers[^]
13 Jan 2018 by _D4N
Hello, I created a class called "ClassA" and I write its content to hard drive as an XML file like this: static void Write(ClassA cA) { var serializer = new XmlSerializer(typeof(ClassA)); using (var stream = new...
13 Jan 2012 by _Unkind_
I have public key like-----BEGIN PUBLIC KEY-----dfghdfghMIGdMA0GCfghdfgSqGSIfghdbdfhdfghdfukighjkgghdfghdfghdfghdfAd2nK0ZrynF6HdghdfgfD33B/G4bLfghdOghdfghhdfghdadwIBBimtyigyQ==-----END PUBLIC...
1 Nov 2011 by A. Duman
i've created encrypyted file with your code and decyrpted from another program with following code:using System;using System.Security.Cryptography;using System.Text;using System.IO;class RijndaelSample{ static void Main() { try { //...
8 Mar 2015 by A4Abhiraj
I'm so sorry for not providing a proper description. This is my first post here.This is a project that embeds text inside a bitmap. I'm editing the Least Significant bits of the RGB components skipping every fourth component just in case the image isn't 24 bits. I debugged the code many times...
25 Jun 2013 by Abel Wike
Installation guideline to applying SSL certificate in OpenCart
21 Nov 2017 by Abhijeet Bavne
Below web.config is used in MVC Web Application. I need to encrypt appSettings.config and connections.config which is external to web.config using configSource.
9 Jan 2011 by Abhinav S
Sorry - You would need code from the game to do this.
16 Feb 2011 by Abhinav S
Have a look at the link http://www.techsupportalert.com/best-free-drive-encryption-utility.htm?page=1[^].
26 Feb 2015 by Abhinav S
I guess as a first step, you need authentication at website level - ASP.NET authentication and authorization[^] ExpandASP.NET Authentication[^]If you need to secure your application, there are many things that you need to look at - some tips -...
2 Jan 2016 by Abhinav S
You cannot play a video file until and unless a video player understands it.The encryption will be something that an existing player understands for e.g. mp3, flv etc.Alternately, you could either write your own video player that understands this encryption or decrypt the file.
9 May 2014 by adriancs
A C# universal AES Encryption Library.
19 Aug 2023 by adriancs
Communication between Arduino and C# (ASP.NET) by using AES encrypted HTTP GET request
9 Jun 2017 by Afzaal Ahmad Zeeshan
You can check that from Windows low-level APIs, or the C# package that you can install from NuGet WindowsAPICodePack, and then you can check for the registry settings to determine what is going on. As suggested by the answer below, values of 1, 3, 5 are considered bitlocker in action,...
6 Feb 2014 by Ahmed Bensaid
http://www.asp.net/web-forms/tutorials/security/admin/recovering-and-changing-passwords-cs[^]
2 Dec 2013 by akki166786
Our requirements is to persist some of the data on the client side as the part of local storage as we have a need to access our application offline also, but we want that some of those file should be encrypted for some reasons but that encryption and decryption should not be completely on client...
5 Jun 2013 by alamz7
Hi, I want to encrypt my password using jquery/javascript and then decrypt it using c# at server side, can anyone tell me the simplest way to accomplish it. Thanks
9 Apr 2011 by Albert Holguin
that's quite a project... controlling a UAV through a 3G modem seems like it wouldn't work very well... what happens if you drift out of reception range? you'll lose the aircraft and all the equipment, this isn't the type of project that someone can do on their own with limited budget.
29 Oct 2019 by Alex345098
How to encrypt and decrypt a string in Javascript using any standard Algorithm?
14 Jan 2018 by Ali Al-Masry
Here`s the encryption method in C#: string CryptographyKey = "BC234xs45nme7HU9"; public byte[] Encrypt(byte[] IN) { byte[] OUT; using (Aes encryptor = Aes.Create()) { Rfc2898DeriveBytes pdb = new...
14 Jan 2018 by Ali Al-Masry
Okay problem fixed, i forgot to encrypt first packet was sent to the c++ app, now everything is going well I also edited the code to be like this unsigned char* Cryptograph::Decrypt(void* in, int Size) { try { unsigned char* pIn = (unsigned char*)in; cli::array ^Buffer;...
18 Feb 2015 by ali_box3893
I want to write a .Net service or find open source code on specific files such as Word to the realtime encryption. This means that when creating or reading the file, the contents of the file decrypt and open with the software. And then save and exit, the file content is encrypt again. 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...
16 Aug 2011 by Alireza Loghmani
Hi, I want to encrypt some strings in C#, I want to know which encryption is most powerful and how can I use it inside of my code.And also what kind of encryption Microsoft uses to encrypt auth cookies?Thanks in advance.
23 Mar 2013 by alisna43
hello theremy name is ali and im living in iran, as you know our government is limiting the internet on us.we have censorship on it that we cannot go to facebook even.because of that we should use vpn or proxy or anything like that.recently the have blocked the PPTP and L2TP protocols...
28 Mar 2013 by alisna43
you even did not read the question completely.THERE IS NO PROBLEM WITH ENCRYPTION MY FRIEND. No encrypting included code is not workingFor your Information Im using TripleDES With MD5thank you anyway
2 Jun 2013 by AlphaDeltaTheta
DES is a block level cipher. You must use a padding mechanish such as CBC,CFB8, OFB8 or PKCS5 etc.
24 Jun 2018 by Alvan Khong
I've created a login page with some simple SQL query function & i'm trying to encrypt my URL query string, but it seems there's some problem with it, everytime after i used my "button" function the URL reveals itself. May i know what's the problem with me coding? Remark: I've putted...
19 May 2013 by Amey K Bhatkar
you can read all text from word file and then encrypt/decrypt it.You can use Microsoft.Office.Interop.Word to read form wordfor Excel Mircrosoft.office.Interop.ExcelI will post code to read word file.Microsoft.Office.Interop.Word.Application word = new...
21 Apr 2014 by Ami_Modi
Hi guys..I want to encrypt mail id. The encrypted mail id should not contain special characters.I have used this: string EncryptedEmailId; string EncryptionKey = "MAKV2SPBNI99212"; byte[] EmailIdEncrypt =...
23 Apr 2014 by Ami_Modi
I got my ans from here:http://www.nullskull.com/faq/834/convert-string-to-hex-and-hex-to-string-in-net.aspx[^]a) Convert String to Hex public static string ConvertStringToHex(String input, System.Text.Encoding encoding) { Byte[] stringBytes =...
16 Jul 2018 by Amir Dashti
I have difficulty to decrypt data being encrypted using OpenSSL, RSA and RSA_PKCS1_OAEP_PADDING padding option. What I am doing is to load the key from Windows KSP: m_hSystemStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, m_storeName.c_str()); ...
28 Mar 2011 by Amit Kumar Tiwari
Read this @ .NET Encryption Simplified[^]
17 Oct 2012 by AmitDey
Hello All,We are trying to setup encryption for a single column ( not the entire database ) using symmetric key on database where we also want to setup always on.We created master key, certificate and symmetric key on the user databse and we are able to encrypt.When the primary...
13 Jul 2012 by AmitGajjar
Hi,Please go through How To: Hash Data Using MD5 and SHA1[^]This may help you,Let me know if you have any query.Thanks-Amit
21 Aug 2018 by Amol Sagvekar
Hi, We have a web application which fetched PDF from government site base upon the current username, and this username is encrypted. But as a developer, I can pass the different username during debug mode and I can fetch PDF of any user. Since this is a confidential file so my client wants to...
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 =...
12 Jan 2011 by Andrea Pieraccini
I'm interested in understanding whether the Ultimate Grid libraries are subject to US export control (EAR) and if so under which ECCN they are classifiedThanks,Andrea
13 Jan 2011 by Andrea Pieraccini
Thanks for the help. I know the authors are Canadian, but a laywer told me that if US components are used there is still the possibility that the code is subject to US export control.Btw, thanks for your help.Andrea
30 Dec 2011 by Andreas Gieriet
Hello Hassan,Is this what you are looking for?You may exchange alg and the associated aux functions to match your needs.If you have a byte array instead of a C# string, you may leave away the Unicode conversions to byte array.If you do not need a printable representation, leave the...
15 Dec 2015 by Andy Lanng
This is a bit simpler. Uses mod to deal with numbers outside bounds: private abstract class CharClass { //default shift private static int _shift = 13; //chars that can be shifted private const string Alphabet =...
16 Feb 2011 by anirban_sinha
Hey all,How would I be able encrypt data on my pen drive? More precisely, as soon as I copy data into my pen drive it would be encrypted?Please don't suggest true crypt. I know about it and it doesn't work the way I want it to.I dont think you understood the question or perphaps i...
7 Jan 2014 by AnkurGoelcopalpartners
How do I encrypt or decrypt the strings in silverlight?Please help..............
13 Jan 2014 by Antonio Lopez R
Specific implemetation for Mexico CFDI. others can use as they need
9 Nov 2015 by AnujSethi
Hi All,There is an App which features downloading their videos for offline viewing via their Android and Windows app. I was wondering where does this app saves these videos and if they are encrypted, how to decrypt and play them?I am a programmer but I know nothing about Android/windows...
16 Nov 2016 by APE-Germany
A simple class which allows to encrypt/decrypt a string with a password (AES/SHA2)
22 Feb 2011 by Apriorit Inc, Eugene Wineblat
In this article, the use of open source OpenSSL library for file and disk encryption is described
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),...
20 Feb 2014 by Arindam Tewary
Hi Can you try this ?http://ntt.cc/2008/01/19/base64-encoder-decoder-with-javascript.html[^]http://stackoverflow.com/questions/2820249/base64-encoding-and-decoding-in-client-side-javascript[^]
27 Aug 2011 by arun_1920
Check this link: http://www.schneier.com/code/blowfish.cs[^].
24 Feb 2015 by arunkx
I have an encrypted string (encoded with a key using HMACSHA256). Now how can I decrypt it back using the key and HMACSHA256 algorithm?
24 Apr 2014 by Arvind Singh Baghel
I am writing code to encrypt password in connection string in config file and decrypt password while getting connection from config file.
3 Jan 2013 by asadullahabkari
I am planning to make a client server application at which client will install a software which will contain 10 to 20 video tutorials each of which will be 5 to 10 minutes in length , what will be the best way to secure those videos , in such a way that no one can use it (Play it) without the...
22 Aug 2010 by AshishGupta0305
I have an Microsoft Access 2007 (.mdb) database file in which i know the password of the file by which the file opensbut the data of fields in the table is seem to be encrypted as it is like :m9%(m."!!(.9$"#m"+m$#>9,#.(>m"+m.!,>>..… "#*m9%(m$#>9,#.(>m"+m))Data Type of that field is...
19 Feb 2022 by Asif Bahrainwala
A simple C++ program to generate RSA key pair
27 Aug 2010 by AspDotNetDev
Do you have money? Find a recruiter who can hire quality assurance engineers. Or release the software as "beta" status and have people test it for free. Or if you have coworkers, ask them. Or ask family and friends.
14 May 2012 by Asutosha
I am unable to decode the attachment. It something like =?utf-8?B?MS5qcGc= which is encoded. I need to decode that attachment. The java code i am using to decodeprivate static String decodeName(String name) throws Exception { if (name == null || name.length() == 0) { return...
15 Apr 2013 by atul123321
How to Encrypt And Decrypt a field without writing any frontent code .
16 Dec 2010 by Avi Farah
Overcoming limitations of: Enhanced String Handling
30 Jun 2013 by Aydin Homay
HiFor getting more information about encrypt and decrypt access database follow of links...
5 Jan 2017 by Ayodeji Oluwatomiwo
check this article Encrypt and Decrypt Data with C#https://www.codeproject.com/articles/14150/encrypt-and-decrypt-data-with-c
6 Oct 2012 by Babar_Malik
Hello,I want to develop a program in C# to encrypt videos, e.g take a video, encrypt it and save it in encrypted form. And decrypt it when required.I am beginner on Cryptography, any help would be highly appreciated.Thanks in advance.Best Regards.
25 May 2015 by Baiju Nath Upadhyay
public static string Decrypt(string cipherString, bool useHashing) { byte[] keyArray; byte[] toEncryptArray = Convert.FromBase64String(cipherString); System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader(); string key =...
21 Apr 2014 by balu12345
Hi All,I need to consume a webservice(developed in Java) in C#.net.In this I need to pass the parameter name as db:hostname in request from c#.net to Java.
13 Jul 2012 by barneyman
As others have stated, you cannot turn a hash back into it's original data - that is not the purpose a hash functionThat said, what you appear to be doing is creating a digital signature, which uses an asymmetric key to encrypt the hashChecking the data is correct is a case of hashing...
29 Jun 2014 by Bartosz Wójcik
Try http://www.stringencrypt.com/[^] it helps you to encrypt the string and generates the decryption code in selected programming language.
22 Nov 2013 by Baxter P
7 Oct 2015 by bdjunayed
It will clear your idea https://msdn.microsoft.com/en-us/library/ms892474.aspx[^]
27 Aug 2013 by Bernhard Hiller
cspParams.Flags = CspProviderFlags.UseMachineKeyStore;Well, you installed your keys on your local machine, hence it works locally. But you haven't yet installed your keys on the server.Furthermore, passwords are normally not "encrypted" in a way that the clear text can be recovered, normally...
19 Sep 2013 by Bernhard Hiller
You give no information on what you mean with "transfer". Is it transfer over the network? pgp hardly chanegs the file size, so you send 2.2 Megabytes per second - or some 20 MegBits per second - which might be already the capacity of your internet line - ?Since you wrote you are encrypting...
20 Feb 2014 by Bernhard Hiller
Because nowhere in your "encryption" code, you create a base64 string.
10 Oct 2015 by Bernhard Hiller
If the text is written with ASCII encoding, you get 8bits per character. That is, you take 8 characters for one block of 64bits; you may need to feel up remaining space by e.g. \0.For other encodings, the width is typically 16bits, then take 4 characters per 64bit block.
13 Jul 2016 by Bernhard Hiller
It depends on how hard it should be for users to mess with the files. You could store the content in binary format instead of text format. You could compress (zip) the files, using classes of the Compression namespace. You could also generate a password protected zip file (but that requires...
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...
12 Dec 2017 by Björn Kreye
Hi, my Application loads a CSV file and transforms the Data in it. This Data is stored in a List I would like to be able to encrypt every row in this list with a public key and then save it to a new CSV file. After I saved the file with the encrypted data, I would like to encrypt this file...
24 Nov 2015 by bling
Matt and Henrik have the right idea.Write a shift function to do all the magic.public class Shift{static char shift(char letter, int distance){ if (letter >= 'A' && letter
16 Jan 2015 by Bob712
Is there any implmentation in c# for decryptByPassPhrase of the sql server??
10 May 2011 by BobJanova
Use DESCryptoServiceProvider.CreateDecryptor, and make sure you pass the same key and IV as you pass to the Javascript implementation. Then check that you've set the properties of the returned DES object for Mode and Padding to the same. The author claims that the JS implementation is compatible...
18 Nov 2015 by Bond487
I need to find what encryption and decryption algorithm using for below scenario. Output is group of number in 24 or 48 or 72 digits.#1 Input = 1Output = 030052163036069134206165#2Input = 2Output = 160128173170209241092010#3Input = 3Output =...
12 May 2014 by Brad Joss
[RegSave] your property to the Registry, and more.