Comments (11)
I already have some results :)
from flowcrypt-android.
I have some questions:
- Can I detect if an email simple or encrypted?
- PgpKeyInfo. What is String longid? Where to take it?
from flowcrypt-android.
- Yes I wil give you a function that lets you detect it
- you can do
k = js.crypto_key_read(....);
and thenk.getLongid();
- you should do this when saving the key
great work!
from flowcrypt-android.
PgpKeyInfo. What is String longid? Where to take it?
I mean, when I create PgpKeyInfo pgpKeyInfo = new PgpKeyInfo(armoredKey, longid), where to take longid? I can generate longid random or I must take it from some code?
from flowcrypt-android.
Longid is unique to each key and you have to get it from the key.
You have to get it when importing the key and save it along with the key. When you import, you are doing something like "key = js.crypto_key_read(....);". On that "key" variable you get, do key.getLongid() and save that along with the key.
Letter when JS is searching for that key, you can serve it based on the associated longid.
from flowcrypt-android.
Sorry, I'm on my phone. Actually, you need to do "js.crypto_key_longid(key)" on that PgpKey variable during import.
from flowcrypt-android.
That will give you longid. Save that when importing each key.
from flowcrypt-android.
This one:
public String crypto_key_longid(PgpKey key)
from flowcrypt-android.
from flowcrypt-android.
Can I detect if an email simple or encrypted?
Later I will give you a sophisticated method that will parse out all details of an email and give it to you in an object. Some parts of email may be encrypted, some may be plain text, it may contain other elements like signatures or public keys and so on. We will look into that when we are done with the prototype.
For now, you can use js.crypto_armor_clip()
for this. Supply it with text, and if the text contains an encrypted message, it will return you the string of the encrypted message - clipped so that you can put it into js.crypto_message_decrypt()
. If there is no encrypted message in supplied text, it will return null.
from flowcrypt-android.
from flowcrypt-android.
Related Issues (20)
- WorkManager is not initialized properly
- version 1.5.5 HOT 2
- [User requested feature] Ability to bulk change email labels HOT 2
- Enterprise version. Prevent accepting user certificates when checking secure connections. HOT 4
- Add warning for suspicious messages HOT 7
- FlowCrypt Backup are created for imported exisiting user keys HOT 6
- Fix blinking when we open the message details screen HOT 1
- Refactore code
- version 1.5.6 HOT 2
- Wrong message is loaded from search results HOT 1
- Message details ViewPager. Ask for a missing passphrase only on the right screen.
- "GmailAPIException: Requested entity was not found." errors
- "Unable to start service com.flowcrypt.email.service.PassPhrasesInRAMServ" errors HOT 1
- Remove android.permission.RECEIVE_BOOT_COMPLETED as not used by the app directly
- Add email signatures support HOT 1
- user image is rendered as empty circle HOT 1
- states are lost for a lot of Gmail labels during scrolling
- version 1.5.7 HOT 3
- Error "NeedRemoteConsent" appears on user inbox HOT 2
- Field length for exception reports HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowcrypt-android.