Click here to Skip to main content
15,894,330 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 Title

Encryption 

2 Sep 2012 by umar.techBOY
can we break the encryption, all i found by google and experiments is:The first line of a file (78MB 8n size) (database of a free religious books software) contains these strings "Standard ACE DB" "M i c r o s o f t b a s e c r y p t o g r a g h i c p r o v i d e r" (reading in c#,...
12 May 2014 by Brad Joss
[RegSave] your property to the Registry, and more.
17 Feb 2014 by Member 10257082
Hello,I have a big problem and no solution to implement it.I want to encrypt data with SHA1 RSA private-key from my .P12 file and then it must have a signature from a other certificate. I prefer c#.How can help my please?Thanks
17 Feb 2014 by Sergey Alexandrovich Kryukov
There is no such thing as SHA1 RSA private key. You mixed different things together. SHA* is not encryption; this is a set of cryptographic hash algorithms.And if you just need encryption, you don't need certificate. It looks like you are totally lost and ask illiterate questions. You need...
16 May 2012 by User 5474275
Hi Guys,I need to generate a MAC on a string of data in php. A 3DES algorithm must be used, since we are interfacing into a 3rd party system. In c# you can use the library MACTripleDES to generate this.How can I generate the MAC in php?Thanks!
16 May 2012 by Peter_in_2780
Get the Mcrypt extension for PHP. See the PHP manual[^] for details and required libraries.Peter
23 Mar 2015 by Mehdi Gholam
Ask your friend to send you the correct file again, there is very little else that we can help you with.
27 Mar 2012 by Marian Placko
This article shows a simple hack of a built-in MS SQL Server WITH ENCRYPTION mechanism
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.
28 Jul 2012 by ismcnqho
[url=http://ww...
30 Jun 2013 by Kumar_G
Hello FriendsI have a software developed in vb6.0 the software has few textboxes and we have to type in it and the query is fetchedand matching result is displayedIt uses MS Access 2000 MDB formatSomehow i have managed to open the access file but when i open itits all encrypted ,...
30 Jun 2013 by Aydin Homay
HiFor getting more information about encrypt and decrypt access database follow of links...
27 Oct 2011 by ThePathFinder
Hi,My program written in C-sharp, needs to access FTP and get files. BUT i want to send the password encrypted while sending request to access FTP, so it doesn't appear as plain-text over the network. But for authentication to FTP requires a plain password, not in encrypted form.Can anyone...
27 Oct 2011 by Pete O'Hanlon
There's no way to do this with standard FTP, but you may be able to use FTPS - assuming that the site you are trying to connect to supports it. Basically, you can think of FTPs as being the FTP equivalent of HTTPS; in other words it uses SSL for file transfer.There's a demonstration of doing...
17 May 2018 by Chillin92
Currently, my project is using Hmac-SHA256 to do the authorization in APIM. We are struggle with how to generate, transmit and store the secret key between client side and ours. Is there any secure way to do this? What I have tried: For now, we are generating the secret key through openssl...
12 Aug 2010 by Wildshane
Hi,I am looking at creating an activation service for a small app I am currently working on.Would just like to know if anyone knew of any good web tutorials or instructionals that described the current approaches to online activation of desktop applications.I am wanting to know a bit...
12 Aug 2010 by Yusuf
did you consult this guy[^]
4 Oct 2013 by tstt91
Hey all!I wanna make program with activation code : xxxxx-xxxxx-xxxxx-xxxxx-xxxxxAnd the code have to limit day.(30 days,60 days.... bla bla)how do I have solved that problem?And this is a references i found: Application Trial Maker[^]
4 Oct 2013 by Mehdi Gholam
Remove the code that is doing the limiting, or just contact the author on the forum of that article.
6 Aug 2011 by sharanyak
Actually i want add security in for database.and my code is: public static string Encrypt(string PlainText) { Rijndael rijndaelkey; string passPhrase = "Ecommerce1CrAp5"; string initVector = "@4B2c2E4e4F6g2326"; rijndaelKey =Rijndael(passPhrase,...
6 Aug 2011 by Christian Graus
Here[^] is the Microsoft sample for this class. I don't know if they changed it, or if you invented this code, or what the issue is, but Rijndael does not appear to have any constructors, only a static method to return an instance.
19 Aug 2023 by adriancs
Communication between Arduino and C# (ASP.NET) by using AES encrypted HTTP GET request
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...
28 May 2016 by Member 12350964
I am working on a project where i have to coordinate with .net team.. I need the equivalent code for the below mentioned AES encryption algorithm(written in C#) in objective -C.. I have tried using AESCrypt and CommonCrypt but its not woking well..getting different encryption value in both...
28 May 2016 by Garth J Lancaster
The obvious thing is that the parameters for whatever libraries you're using on each side have to be the same - there are too many to name here, padding is the usual one that gets messed up (and would be consistent with the error you saw) here's a link to someone who says they have working...
8 Dec 2010 by The.Z
Hi.I have to encrypt a string with AES - PKCS7 Padding in VB.NET.I don't know anything about en/decryption and I have asked google before...but without a result.. :( I have received this description to do that:The PKCS #7 padding string consists of a sequence of bytes, each of...
15 Dec 2010 by The.Z
Hmm..This topic is still active..I need help with this problem..Can somebody help me, please?Best Regards,Z
6 Oct 2014 by Pavel Durov
This article will explain briefly how to use a basic encryption/decryption on Android and on .NET platforms, with focus on passing encrypted data from Android to .NET.
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
23 Aug 2015 by paulortiz
Hi Guys,We are currently in the process of migrating our codes from Javascript to Swift with Objective C supported libraries. Our encryption algorithms was written using Javascript, and I found out that we are using ASN1 structures. I was wondering if any of you knows any ASN1 libraries that...
24 Aug 2015 by KarstenK
Swift isnt so wide spread now and here, so you better to Objective-C. My tip would be interesting approch to wrap OpenSSL into Xcode.The professional software from Chilkat has also Swift Example.Lastly I found that ASN1C on Github.I really would like to hear from you how you solve...
21 Oct 2014 by Muhammad Taqi Hassan Bukhari
I have a project to understand and modified. in this the developer is using asp.net membership provider for user registration purposes. I need to know which password encryption technique is using in this project.My web.config file is this.
21 Oct 2014 by Kornfeld Eliyahu Peter
A little Google can get you so far....http://msdn.microsoft.com/en-us/library/system.web.security.membershippasswordformat(v=vs.110).aspx[^]http://referencesource.microsoft.com/#System.Web.ApplicationServices/Security/MembershipPasswordFormat.cs[^]
3 Jan 2018 by Walid Ibrahim Mohey-Eldin
Hello Guys, I have encrypted id in route and decrypted it in details action but id property type is int and when i encrypted it i change it to string and convert it again when decryption to int. It’s working fine with details action and working fine with edit and delete get actions but edit and...
3 Jan 2018 by _awatts
try Hashids - generate short unique ids from integers[^]
5 Aug 2014 by santosh poojari
This article helps you to build and enable robust web applications with respect to various aspects of security that needs to be taken care of while designing a system.
11 Apr 2012 by Velkumar Kannan
Hi, I want to play an audio file using C#. How can I achieve it. How to encrypt and decrypt an audio file using C#.
11 Apr 2012 by Sergey Alexandrovich Kryukov
Encryption algorithms do not care about particular content of the data to be encrypted or decrypted. They all work with arrays of bytes, nothing else, so any file can be processed in the same way. The problem is: by encryption, you might mean few very different things. You need to understand...
25 Sep 2021 by Clark Fieseln
Compress, encrypt and hide a secret file inside an audio file (MP3, WAV, OGG, FLAC, ..)
1 Jan 2013 by Karl Stoney
In this post, I will show you how to handle automatic encryption and decryption of hidden form fields using Rijndael.
29 Nov 2017 by Sacha Barber
Azure Service Fabric Demo + IOC, logging, encryption
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.
28 Feb 2011 by Patrick Kalkman
An assembly that adds Basic Authentication to an IIS hosted WCF REST service to validate against any back-end.
16 Oct 2013 by Member 10339581
Which language offers a better scope for AES encryption/decryption. C++,Python,C# or Java.
21 May 2012 by Ravinder Singh Yadav
Blowfish encryption is very popular for encrypting data but its really hard to find a simple .net implementation of this algorithm. This articles tries to solve this problem.
8 Aug 2011 by Đỗ Hồng Ngọc
Using IKVM is not "so simple" as you said. There are some implementations of Blowfish in C#. You can refer to:http://www.koders.com/csharp/fidD5E0D7AC50858EA8F7131E8CD2746F3471A1B953.aspx[^]http://www.schneier.com/code/blowfish.cs[^]and,http://www.bouncycastle.org/csharp/[^]
27 Aug 2011 by arun_1920
Check this link: http://www.schneier.com/code/blowfish.cs[^].
9 May 2014 by adriancs
A C# universal AES Encryption Library.
31 May 2012 by Dr. Sakraf
I wrote an encryption application in C# which uses DES.I wrote the encryption methods myself based on the DES algorithm description, not using the in-built methods for various reasons.I checked it many times but still it still not working properly. It doesn't give back the original text...
31 May 2012 by OriginalGriff
We can't help much at all.We have no idea how you have implemented the algorithms, let alone how you have implemented the code that uses them - and they aren't simple algorithms to implement in the first place!I would start by implementing the same code, but using the built in DES...
5 Dec 2011 by JoeilG
Hey guys! With some great help from someone I met on the internet, I was able to programm an Enigma in C#. But only it's three rotors and the reflector. When I type "TEST" , "OLPF" comes out. All rotors are set on A-A-A. Here's the code:namespace Enigma{ public partial class Form1 :...
4 Dec 2011 by Dalek Dave
This is an English Language Site.All the comments in code are not much use to non-German speakers.May I suggest a few minutes of your time translating them may be useful.
2 Aug 2013 by steven-_-song
Easier GetHash function in System.Security.Cryptography.
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...
22 Aug 2017 by Member 13359351
HI I want to encrypt a file by relative file. I use this code to encryption. private void EncryptFile(string inputFile, string outputFile) { try { string password = @"Cortex98"; UnicodeEncoding UE = new UnicodeEncoding(); byte[] key = UE.GetBytes(password); ...
22 Aug 2017 by OriginalGriff
Look at the error message: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path 'C:\Users\Qsk\Desktop\FINFORM\cortexForm\bin\Debug\lib\corte‌​x\vCom.cortex It couldn't be a lot clearer! It is...
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...
13 Jan 2018 by OriginalGriff
Calling Close should call FlushFinalBlock - but the reference sources show that it doesn't specifically override the Close method in the Rfc2898DeriveBytes class, so it might be worth replacing your call to close: using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateEncryptor(),...
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;...
14 Aug 2023 by Daniel Ramnath
C++ OpenSSL 3.1 Attack AES-CBC using Padding Oracle Attack, and Timing Attack
23 Oct 2013 by Chaitanya Kolla
Adding the WS-Security Header to a request using the WCF bindings
11 Jun 2013 by leocode7
Dear Friends,I used a KeyGenerator Class for genereate a key.example:Key clave = keyGen.generateKey(); //(another code lines are not specify here...)and a Cipher Class too, you can see:Cipher cifrar = Cipher.getInstance("DES/ECB/PKCS5Padding");Finally I encripted my...
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...
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...
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.
21 Nov 2017 by ZurdoDev
How to: Secure Connection Strings When Using Data Source Controls[^] Read through details.
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.
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...
8 Jan 2012 by Simon Bridge
Generating encryption keys using Cellular Automata.
9 Sep 2013 by Herbisaurus
Looking for a good Code Obfuscator, for managed code, I am well aware of PreEmptive's dotfuscator, their paid edition is pretty good.Anyone know of a good (free or for a reasonable price) obfuscator for C# (and\or Java) and if you have worked with one, I'd like to hear your experience...
9 Sep 2013 by Ron Beyer
I searched high and low for a "free" obfuscation tool, while there are some out there (CodePlex has an open-source one), they didn't meet my needs. Unfortunately all the paid ones think that they are made of gold.I may end up developing (and this is an idea for you) that just makes it...
18 Sep 2017 by Techno- Byte
hi everyone my Company ordered me to create program for Time attendance we have program working but this application for IT company this company finished and we have no connection to them for technical support so I programmed program like that the problem I faced is password login it is saved in...
18 Sep 2017 by Graeme_Grant
This Google Search link gives you many different ways to do what you are asking: c# password encryption 2017 - Google Search[^] Choose the one that gives your client the security that they need.
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.
21 Apr 2014 by Guruprasad.K.Basavaraju
Colon is not a valid character inside a element name. Colon is used to pair the namespace and the element name. Here if you want the Db to go along then you might need to add it as a namespace.// Serialize the hostname field as an attribute with the given namspace[XmlAttribute( Namespace...
1 Sep 2015 by Recmach
I tried to encrypt the connection string section of the web.config file via a simple winforms application. I ran the VS2010 as an administrator and ran the following section of code.private void encryptButton_Click(object sender, EventArgs e) { Configuration config =...
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...
27 Sep 2011 by kittydas
Hello!I am making an MD5 application to hash the passwords in my database.I successfully hashed the passwords into a Pwd_hash column in my table and it is of datatype char(32).However, I have seen in some forums that it is best to keep the hash value in a binary(16) column.Now, my...
27 Sep 2011 by CPallini
You have to convert two hexadecimal characters at time, e.g. string s = "ed07"; vector binary; for (string::size_type i=0; i
3 Jan 2013 by YvesDaoust
I'd like to be able to copy unencrypted files from a disk to an external storage (whatever kind), and then back. I would like that when copying to external storage, the files transparently get encrypted, and when copying from external storage, they get decrypted. This way, I'll see no change on...
3 Jan 2013 by H.Brydon
If you are using NTFS on your 'backup' file system, you just enable encryption on it, and ordinary copy operations in either direction will do the encryption/decryption for you.
5 Oct 2010 by #realJSOP
One way to create a completely random encryption key, and sharing it with a client application
30 Jun 2022 by raddevus
Fully working sample code and explanation of everything necessary to create authenticated encryption with AES256.
19 Mar 2015 by Yaseer Mumtaz
This tip contains securing Web or App config sections in C# with code snippets.
30 Dec 2017 by Member 11831883
hi how to Creating a cryptographic connection strings file and using the file at the beginning of the application. connection string . The connection string is not inside the program and is separated by a file and in login form by combobox select for ever What I have tried: The connection...
30 Dec 2017 by RickZeeland
You can use System.Security.Cryptography for this, see examples here: Simple encrypting and decrypting data in C#[^] encryption - Encrypting & Decrypting a String in C# - Stack Overflow[^]
7 Oct 2013 by Rick Bassham
An introduction into creating a working FTP server in C# using the RFC specification.
16 Oct 2016 by Z Kavtaskin
How to create a Custom Key Store Provider for SQL Always Encrypted (Without Key Vault Example PoC)
23 Jun 2014 by Cédric Poottaren
Dear community members.I would like to know how do I encode a file in Visual Basic so that It can't be opened with a word processor such as Notepad or Word. I want to create a custom structure for a file which will act as a database for my Application. It will be encrypted using a special...