question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to save decrypted image.

See original GitHub issue

I think this might not be entirely an issue with this library as the same code essentially work in react native, but on the web, the file generated by the JS is constantly “corrupted”.

imageData = crypt.decrypt(privateKey(), encrypted).message;

The data coming out from that doesn’t seem to be the same in react native and the web for binary data.

I save it off to a file and compare the size is different, original 1.9m vs encrypted and decrypted 1.8m

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fuelxccommented, Mar 13, 2018

ok, that is where I am getting the

> browserify lib/webpack.js -o web/hybrid-crypto.js -t [ babelify --presets [ react-native ] ]

Error: Couldn't find preset "react-native" relative to directory "./hybrid-crypto-js" while parsing file: ./hybrid-crypto-js/lib/webpack.js

I am more or less muddling my way through, thanks!

0reactions
juhoencommented, Mar 14, 2018

No problem, I will take a look later on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to decrypt locally stored encrypted image. #13 - GitHub
Hi, I used virgilCrypto for encrypting my captured image & able to do encryption on that. This file I stored in my apps...
Read more >
Ways to Repair Encrypted JPEG Photos - Stellar Data Recovery
Summary: Unable to open encrypted JPEG image files? They might be corrupt. ... Find and save your photos from the backup folders.
Read more >
Cant decrypt my files on my external drive from another ...
The answer is simple: If the files were encrypted and you don't have the key, the files can't be recovered. The purpose of...
Read more >
java - Only Encrypted image should save in file and decrypting ...
In This code file is saving original image, Encrypted image and decrypted Image. I have two problems in that : Only Encrypted image...
Read more >
How to encrypt any image file using Python - YouTube
But we should remember one thing that here our encryption key plays a very important role without that key we can not decrypt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found