encryption

How can I find the initialization vector CAPICOM used to AES-encrypt my data?

强颜欢笑 提交于 2021-01-29 04:20:53
问题 I have an application written in Classic ASP that encrypts data via CAPICOM and stores it in a database. The encryption code looks something like this (Classic ASP, VB. Simplified a bit for brevity): set encryptObject = Server.CreateObject("CAPICOM.EncryptedData") encryptObject.Algorithm.Name = 4 ' 4 is AES encryptObject.Algorithm.KeyLength = ' 0 is MAX encryptObject.SetSecret(sharedSecret) ' sharedSecret was set earlier encryptObject.Content = stringToEncrypt encryptedString = encryptObject

Capicom 3des: 2 key or 3 key?

天涯浪子 提交于 2021-01-29 03:23:59
问题 Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. ( .Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source of this information would also be helpful. I suspect, since I don't think high enough key lengths are supported, that it is 2DES. But I haven't found acceptable confirmation. 回答1: CAPICOM is a thin wrapper

Capicom 3des: 2 key or 3 key?

百般思念 提交于 2021-01-29 03:20:34
问题 Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. ( .Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source of this information would also be helpful. I suspect, since I don't think high enough key lengths are supported, that it is 2DES. But I haven't found acceptable confirmation. 回答1: CAPICOM is a thin wrapper

aspnet_regiis web.config encryption [Error message from the provider: Bad Data.]

ぐ巨炮叔叔 提交于 2021-01-29 02:00:08
问题 I'm trying to encrypt a web app's web.config, but this application exists on 2 different environments (stage, production), each of which should use a different key container. So I'm using this encryption header on my stage config: <configProtectedData defaultProvider="ApplicationProvider"> <providers> <add name="ApplicationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,

aspnet_regiis web.config encryption [Error message from the provider: Bad Data.]

前提是你 提交于 2021-01-29 01:57:57
问题 I'm trying to encrypt a web app's web.config, but this application exists on 2 different environments (stage, production), each of which should use a different key container. So I'm using this encryption header on my stage config: <configProtectedData defaultProvider="ApplicationProvider"> <providers> <add name="ApplicationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,

How to prevent users and other applications from accessing data saved in a file whose content is protected by a password - only streams?

╄→гoц情女王★ 提交于 2021-01-28 21:52:38
问题 So I am creating a business management system so the project files will be saved locally on the computer but many can access the computer. In order that no one can just open the files and access all the data, I want the file to be able to open just threw my app. In order to do it, I thought that in order to open the file there will be some constant password, that I will pass the stream so this is the only way the file can open. Is this possible? what should I change in order to do it in the

How to prevent users and other applications from accessing data saved in a file whose content is protected by a password - only streams?

坚强是说给别人听的谎言 提交于 2021-01-28 21:25:36
问题 So I am creating a business management system so the project files will be saved locally on the computer but many can access the computer. In order that no one can just open the files and access all the data, I want the file to be able to open just threw my app. In order to do it, I thought that in order to open the file there will be some constant password, that I will pass the stream so this is the only way the file can open. Is this possible? what should I change in order to do it in the

Use encrypted assembly in C# application

旧街凉风 提交于 2021-01-28 18:37:58
问题 I am trying to protect dlls I'm using in my WPF application from a simple copy. My solution is to encrypt the code section of these dlls and decrypt when it loads into my application. There is a working way to do that using Assembly: using (FileStream fs = new FileStream(@"Mydll.dll", FileMode.Open, FileAccess.Read)) { byte[] file = new byte[fs.Length]; fs.Read(file, 0, (int) fs.Length); assemblyCashCode = Assembly.Load(file); Type[] types = assemblyCashCode.GetExportedTypes(); Type t =

Use encrypted assembly in C# application

旧街凉风 提交于 2021-01-28 18:32:42
问题 I am trying to protect dlls I'm using in my WPF application from a simple copy. My solution is to encrypt the code section of these dlls and decrypt when it loads into my application. There is a working way to do that using Assembly: using (FileStream fs = new FileStream(@"Mydll.dll", FileMode.Open, FileAccess.Read)) { byte[] file = new byte[fs.Length]; fs.Read(file, 0, (int) fs.Length); assemblyCashCode = Assembly.Load(file); Type[] types = assemblyCashCode.GetExportedTypes(); Type t =

How to authenticate user against salted and hashed password and username?

南笙酒味 提交于 2021-01-28 12:41:04
问题 I am developing a .net web api project and need to store usernames and passwords salted and hashed in a users table. How would I authenticate the user if the username and password fields are random hashed in the users table and the salts are stored in the same row for the user? Am I missing something? It seems as if I would have no way to find the user to do a password comparison. 回答1: They are not random hashed per se. They are hashed against the same key. As a result, to authenticate, you