Posts

Showing posts with the label RSA Crypto

Android Open Source

  Open Source Java App RSA Crypto In order to be able to decrypt the encoded text, we need to save and use the private key. The private key can be converted to a string variable and saved to a file. The file can then be read into a string variable. But it will not be possible to recover the private key. No option to convert any data to RSA key format   As they say, this is done for safety. So that you do not store the private key in files in an insecure area. This statement can be disputed, but for practical application this dispute does not make sense. To save and reuse the private key in your application, you need to use STORAGE. Android REPOSITORY. It's the same as Windows. It uses the utility  MCC Android KeyStore API Generate a key and save it in the KeyStore           final KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore"); final KeyGenParameterSpec keyGenParameterSpec = new K...

Android Open Source

Image
  Android Java Project RSA Crypto In the previous post, we created a project in which the text from a variable is encrypted using a 1024 bit RSA algorithm. Save the encrypted text to a file oflameron.txt Let's check if the application will work correctly if we just read the ciphertext from the file Let's comment out the module for encrypting and writing text to a file oflameron.txt Run the application from Android Studio on the same smartphone   It can be seen that there is no error in the decoding algorithm, but instead of the original text - "garbage information" Why and what to do - in the next post   Android Java Project