Questions tagged [facebook-conceal]

14 questions
6
votes
4 answers

Android encrypting plaint text using facebook conceal library

I tried to encrypt plaintext using the below code. The code seems encrypt the text but it doesnt decrypt to plaintext back. What am I doing wrong ? The code: Entity entity = new Entity("password"); byte[] ciphertext = crypto.encrypt(("data to…
kirron s
  • 61
  • 1
  • 3
4
votes
2 answers

OutOfMemoryException while decrypting file using facebook conceal

I'm working on android application where I need to save Videos in SD Card which must not be transferable that's why I'm encrypting and decrypting as and when needed with Facebook Conceal which works perfectly fine if video size is smaller. Whenever…
Vikalp Patel
  • 10,669
  • 6
  • 61
  • 96
3
votes
1 answer

Facebook Conceal .so files not uploading in Android Project

I cannot get the Conceal Library to work, it may be something I am doing wrong, I wish the instructions were a bit more detailed. http://facebook.github.io/conceal/documentation/ I have added the crypto.jar to my project, and then the instructions…
2
votes
1 answer

How is Facebook Conceal secure if it just stores the key in SharedPreferences?

I want to secure some user data that's being stored in SharedPreferences, so I looked to Facebook Conceal. The inherent issue with storing in SharedPreferences is that there are ways to access it and view the data, so naturally one would think about…
shoe
  • 952
  • 1
  • 20
  • 44
1
vote
0 answers

Trying to implement Facebook Conceal method for saving encrypted password but didn't work?

Trying to implement facebook conceal to save encrypted passwords, i removed all errors and android app runs but as i used insert method in Registration so when i click the registration button the app stops working. Before adding the crypto code the…
1
vote
1 answer

Proguard rules for Facebook Conceal v2.0.2

I am trying to get a set of proguard rules to compile my application with proguard and I can't solve an Issue with Facebook-Conceal java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: JNI GetFieldID called with pending exception…
1
vote
3 answers

Error: Program type already present when building project

I'm using an 'aar' library which I created. In both, my project and the library, there is a dependency implementation of Conceal library (each from its own lib folder). When I build the project after importing the library and using ProGuard…
1
vote
1 answer

Facebook Conceal takes up a lot of space on an app

I recently read an blog post on how the NYTimes managed to optimised their android app: http://www.nytimes.com/glogin?URI=http%3A%2F%2Fopen.blogs.nytimes.com%2F2016%2F02%2F11%2Fimproving-startup-time-in-the-nytimes-android-app%2F%3F_r%3D1 I uploaded…
Simon
  • 19,658
  • 27
  • 149
  • 217
1
vote
1 answer

java.io.IOException: Unexpected crypto version 0

I am trying to decrypt the bytearray by using conceal(facebook). my Code is as below Log.d("Esource", " intial buffer size = " + buffer.length); Crypto crypto = new Crypto(new SharedPrefsBackedKeyChain(this), new SystemNativeCryptoLibrary()); …
SimpleCoder
  • 1,665
  • 1
  • 21
  • 34
1
vote
0 answers

Encryption/Decryption best algorithm for files on android devices

I am developing an app which require it to save .mp3 files(extension already changed) on sdcard. I want to encrypt those files so that it cannot be played directly just by changing extension. I have used AES/ECB and conceal from facebook .From…
SimpleCoder
  • 1,665
  • 1
  • 21
  • 34
1
vote
0 answers

Streaming an encrypted video file to a VideoView using Facebook Conceal library

I have a encrypted mp4 file about 130M that I want to play in a VideoView. What is the best way to stream it? I don't want to copy to an unencrypted file and then use that is the time it takes to decrypt it is prohibitive on slower devices. What…
0
votes
1 answer

Facebook conceal native crash not getting to the app

I'm using Facebook Conceal v2.0.1 library in my app and sometimes I get the following native crash when I try to decrypt an image (jpg): 10-19 15:57:42.885 19174-19174/? A/fbassert: Assert…
Karim Fikani
  • 356
  • 3
  • 23
0
votes
2 answers

Fresco custom image decoder resize options are not applied

I have a custom decoder that uses Conceal to load encrypted images from local storage. Everything works (images are displayed) but performance is terrible when loading local camera images since no downsampling or bitmap resizing is applied at all…
minivac
  • 961
  • 1
  • 7
  • 9
0
votes
1 answer

Encrypting file with Conceal

I've been looking at using Conceal to encrypt some files. The code snippet provided states that the input is plain text. Can it be used to encrypt file binary though? Why is it specifically plain text and not general binary? Here's the snippet…
Kar
  • 6,063
  • 7
  • 53
  • 82