Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6771385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:25:32+00:00 2026-05-26T15:25:32+00:00

I am developing a solution of two parts : part one is SMS encrypting

  • 0

I am developing a solution of two parts : part one is SMS encrypting which will be android based. while part two is to be concerned about the issuing and exchanging public / private keys.

Everything was alright, until i faced this problem :
if you are using java cryptography classes, which provide the mod and exp of a key to generate the key object. While all of what i am getting from the server which generates the keys is a pre-computed public key. so, can’t get mod nor exp from the server, where i am using phpseclib.

after doing some research: i came with three options, which i need to decide which of them is the best.

1) if there is a way to access the mod & exp from phpseclib , problem will be solved with less amount of time, right ?

2) replacing the native cryptography class in java, with third party like bouncy castle that will take the public key is one parameter.

3) changing the server side language to be JSP. then, i could use the same classes on two sides.

Which one of those solutions will be the easiest to adopt .. ?

Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:25:32+00:00Added an answer on May 26, 2026 at 3:25 pm

    Ok, just had a look at http://phpseclib.sourceforge.net/documentation/misc_crypt.html#misc_crypt_rsa_format.

    An easy approach would be to use CRYPT_RSA_PRIVATE_FORMAT_XML, doing some XML parsing on android.

    Edit: forget that 🙂

    Another format – CRYPT_RSA_PUBLIC_FORMAT_RAW – is stored as an array with two indexes – one for the modulus and one for the exponent.

    and

    getPublicKey() has an optional parameter – $type – that sets the format.

    With this, you should receive an array of two elements, modulus and exponent, which you can then transfer any way you like from the server to your client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a solution which will utilize msmq to transmit data between two
I'm developing a solution which uses an ActiveX control (a commercial one which we
I am currently developing a C# WPF project. The solution has two projects, one
I'm developing a custom SharePoint solution which consist of a feature and a timer
I am developing a library which can be compiled for two different technologies. Basically,
I am developing android application but i don't know how to integrate two activity
I'm developing a solution that allows people to upload a DOCX file as a
I'm developing printing solution for MS Office 2007. Office automation is not right for
I have been tasked with developing a solution that tracks changes to a database.
I am developing a Reporting Services solution for a DOD website. Frequently I'll have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.