encryption

Using SQLCipher with Android [duplicate]

房东的猫 提交于 2020-01-11 07:45:10
问题 This question already has an answer here : Encrypt exisiting database in Android (1 answer) Closed 4 years ago . I have previously asked this question and have not got any appropriate answer. I have an app published in the Play Store which makes heavy use of SQLite database. Now I need to secure the database using SQLCipher. Here are some problems I am facing. 1) How can I seamlessly integrate SQLCipher with my existing unencrypted database, so that my app works as it works normally but now

Encrypting a Sqlite db file that will be bundled in a pyexe file

假装没事ソ 提交于 2020-01-11 06:26:09
问题 I have been working on developing this analytical tool to help interpret and analyze a database that is bundled within the package. It is very important for us to secure the database in a way that can only be accessed with our software. What is the best way of achieving it in Python? I am aware that there may not be a definitive solution, but deterrence is what really matters here. Thank you very much. 回答1: This question comes up on the SQLite users mailing list about once a month. No matter

How can I decrypt a string using AES algorithm in c#?

我是研究僧i 提交于 2020-01-11 05:27:09
问题 I have an encrypted string from one of our customers. This string was encrypted using the AES method in Java. The only thing I have is the key: "xxxxxxxxxxxxxxxxxxxxxxxx" (24 chars) and the encrypted text: "56e84e9f6344826bcfa439cda09e5e96" (32 chars). (This really is the only data I have) I can't seem to find a method to decrypt this string. Could anyone provide me with a working example. 回答1: Here are two complete code samples for you: How To: Encrypt and Decrypt Data Using a Symmetric

How does CryptoJS get an IV when none is specified?

扶醉桌前 提交于 2020-01-11 02:41:10
问题 When using CryptoJS.AES.encrypt how does it come up with an Initialization Vector if the third argument is not passed to the function? Is there a way to get it out of the encrypted string? The reason I need this is I need to decrypt something CryptoJS.AES.encrypt returned using Lua, but I only have the key that was provided. 回答1: CryptoJS' CryptoJS.<BlockCipher>.encrypt has two modes of encryption. If you pass in a key that is not a string , but rather a WordArray (CryptoJS's internal

How to decrypt in Java (Android) text that was encrypted with Crypt in Laravel?

余生长醉 提交于 2020-01-10 11:29:07
问题 I need to decrypt some data that I receive from the server, and the programmer who made the API directed me to this Encrypter class, to see what he used to encrypt. Now based on that class, I found that the algorithm used is AES128 CBC, and that the string I receive is Base64 encoded and contains other data, not just the ciphertext. Namely that if I receive the following String:

How to encrypt a file in java using AES [duplicate]

好久不见. 提交于 2020-01-10 10:37:07
问题 This question already has answers here : Java 256-bit AES Password-Based Encryption (10 answers) Closed 6 years ago . I need to know how to create an AES and using it to encrypt and decrypt a file in java. 回答1: Try using a CipherOutputStream and passing in a FileOutputStream . See http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherOutputStream.htm for a quick example, just use Cipher.getInstance("AES/CBC/PKCS5Padding") instead. 来源: https://stackoverflow.com/questions/5307499/how-to

Signing a message using ECDSA in OpenSSL

好久不见. 提交于 2020-01-10 09:22:17
问题 How do I set the private key for signing messages when using ECDSA in OpenSSL programmatically? I have the following code: static int create_signature(unsigned char* hash) { EC_KEY *eckey=NULL; EC_GROUP *ecgroup=NULL; EVP_PKEY *evpkey=NULL; unsigned char *signature=NULL; point_conversion_form_t form = POINT_CONVERSION_UNCOMPRESSED; int signature_size, block_size; unsigned char * block=NULL; ecgroup = get_ec_group_192(); EC_GROUP_set_asn1_flag(ecgroup, OPENSSL_EC_NAMED_CURVE); EC_GROUP_set

Signing a message using ECDSA in OpenSSL

限于喜欢 提交于 2020-01-10 09:21:35
问题 How do I set the private key for signing messages when using ECDSA in OpenSSL programmatically? I have the following code: static int create_signature(unsigned char* hash) { EC_KEY *eckey=NULL; EC_GROUP *ecgroup=NULL; EVP_PKEY *evpkey=NULL; unsigned char *signature=NULL; point_conversion_form_t form = POINT_CONVERSION_UNCOMPRESSED; int signature_size, block_size; unsigned char * block=NULL; ecgroup = get_ec_group_192(); EC_GROUP_set_asn1_flag(ecgroup, OPENSSL_EC_NAMED_CURVE); EC_GROUP_set

Decrypting “long” message encrypted with RSA java

不打扰是莪最后的温柔 提交于 2020-01-10 09:20:50
问题 Hi this is the same question, that was asked two years ago: Java/JCE: Decrypting “long” message encrypted with RSA I had a large byte array and rsa keypair, initiated by value 1024. Using rsa encryption and the specified size of the key is strong requirement, I can't change it. So I can't use symmetric encryption with asymetric encryption symmetric key. I can't use any other keys. I had a byte array and need ciphered byte array to be returned. I wonder if there is any ready tool, that can

How does Android's app/signature verification work?

若如初见. 提交于 2020-01-10 08:29:30
问题 I want to preface this question with two things so I can narrow down where my actual question is: a) I've done software dev before, though never for android b) I'm familiar with PKI and encryptions and hashing and digital signatures and blah blah blah That being said I'm having trouble tracking down more information about where and how Android verifies app creators. I've heard a lot of different information so I'm trying to synthesize to get a better idea of the workflow. I know that every