encryption

How to send a Secure e-mail using SMTP

本秂侑毒 提交于 2020-01-13 19:11:38
问题 I am currently using Google Apps to send SMTP e-mails. If my project deploys some of the information that i am going to be sending will be confidential and i would like to make sure the transmission is secure. Can anyone please let me know what i need to do to ensure that i send a safe e-mail using smtp through the google apps smtp server? smtp.google.com. Any help greatly appreciated. From what I have been told i need to force Https and have a SSL cert in order to do this. I don't know if

can mount unencrypted obb but with encrypted error 21

倾然丶 夕夏残阳落幕 提交于 2020-01-13 18:40:32
问题 This is not related with kitkat bug, i'm testing in 4.4.2 I can mount without problems the obb file, the problem is when try to do the same with encrypted obb. I'm using jobb in windows like this: jobb -d my_folder -o exp.obb -k pwd -pn com.example.name -pv 1 The only thing i changed to load encrypted obb file is this: stgMgr.mountObb(mObbPath, null, new mOnObbStateChangeListener) stgMgr.mountObb(mObbPath, pwd, new mOnObbStateChangeListener) it's not a permissions problem. So, why i cant

Why is this string not equal when it is decrypted a second time with AesCryptoServiceProvider?

天涯浪子 提交于 2020-01-13 17:07:14
问题 I'm having trouble with encryption and decryption of text in C# (VS2012, .NET 4.5). Specifically, When I encrypt and subsequently decrypt a string, the output is not the same as the input. However, bizarrely, if I copy the encrypted output and hardcode it as a string literal, decryption works. The following code sample illustrates the problem. What am I doing wrong? var key = new Rfc2898DeriveBytes("test password", Encoding.Unicode.GetBytes("test salt")); var provider = new

why File.copy works but File.OpenRead prompts access denied?

落爺英雄遲暮 提交于 2020-01-13 16:30:34
问题 I want to copy an encrypted file which is being used by another process. This works: System.IO.File.Copy("path1", "path2",true); but the below code is not working. Prompts "file access denied" error: using (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read))//access denied open file { using (Stream copyFileStream = new StreamDecryption(new FileStream(copyTo, FileMode.Create))) { } } How can i copy an encrypted file if file is used by another process? Thanks

Convert ColdFusion Encryption using AES/Hex to C#

断了今生、忘了曾经 提交于 2020-01-13 16:25:47
问题 Related to the topic in this post: Converting Coldfusion encryption code to C# How would you do the conversion for this: <!--- valueToEncrypt = "34245678", key = "TJhKuhjyx/87giutBNHh9t==" ---> <cfset output = Encrypt( valueToEncrypt, key, "AES", "Hex")> Here's what I tried in C#: byte[] plainText = Encoding.UTF8.GetBytes(TextToEncrypt); byte[] key = Convert.FromBase64String(encryptionKey); RijndaelManaged algorithm = new RijndaelManaged(); algorithm.Mode = CipherMode.ECB; algorithm.Padding =

Convert ColdFusion Encryption using AES/Hex to C#

混江龙づ霸主 提交于 2020-01-13 16:25:32
问题 Related to the topic in this post: Converting Coldfusion encryption code to C# How would you do the conversion for this: <!--- valueToEncrypt = "34245678", key = "TJhKuhjyx/87giutBNHh9t==" ---> <cfset output = Encrypt( valueToEncrypt, key, "AES", "Hex")> Here's what I tried in C#: byte[] plainText = Encoding.UTF8.GetBytes(TextToEncrypt); byte[] key = Convert.FromBase64String(encryptionKey); RijndaelManaged algorithm = new RijndaelManaged(); algorithm.Mode = CipherMode.ECB; algorithm.Padding =

C# and SQL Server: Passwords. Where to do what?

徘徊边缘 提交于 2020-01-13 13:10:34
问题 Ok, I have an application written in C#. We have data in an SQL Server. Among that data we have user accounts, which will give access to the application. I've read around, and I know that you should salt and hash and possibly hash a bunch of times, etc. But, where do I do what? What do I send to and from the SQL Server? Exactly what do I store in the database? Do I hash it in SQL? (possibly a hash function there, like in mysql?) Do I hash and do the fancy stuff in my code? Do I send the hash

C# and SQL Server: Passwords. Where to do what?

不想你离开。 提交于 2020-01-13 13:09:14
问题 Ok, I have an application written in C#. We have data in an SQL Server. Among that data we have user accounts, which will give access to the application. I've read around, and I know that you should salt and hash and possibly hash a bunch of times, etc. But, where do I do what? What do I send to and from the SQL Server? Exactly what do I store in the database? Do I hash it in SQL? (possibly a hash function there, like in mysql?) Do I hash and do the fancy stuff in my code? Do I send the hash

PKCS#11. Possibility of performing Ecryption/Decryption in hardware

早过忘川 提交于 2020-01-13 11:30:07
问题 Cheers. This is a copy of my question on crypto stack exchange. I'm dealing with HSM via PKCS#11 C/Python interface. I'm wondering is it possible to do some C_Encrypt / C_Decrypt in hardware. By saying "in hardware" I mean encryption/decryption without exposing the result to the caller space. This is mostly aboud decryption as I want to call C_Decrypt and leave the result inside the HSM as arbitrary data to do some other transformations on that data later, saying re-encrypting it on some

FMDB and encryption

帅比萌擦擦* 提交于 2020-01-13 11:08:24
问题 I'm using FMDB to work with sqlite and I'd prefer to avoid a dependency on SQLCipher. How can I simply leverage the DataProtection capability built into iOS? Is this possible - the only requirement is to protect the data in the event of the phone being stolen. If the phone is unlocked with a PIN, it's fine that the user could access the DB - it's their data. 回答1: Look for the line where you do databaseWithPath: (or initWithPath: ), then add: FMDatabase *db = [FMDatabase databaseWithPath:path]