-2

I had first created a web application in VB.Net. Now i am creating its mobile application using Ionic framework.

While Working with VB.Net, we had an inbuilt encryption decryption algorithm. Now working with Ionic i can't use that dll. So how can i encrypt my login URL which consist of login password and send it to API?

I tried encrypting the password with AES256 but on API side when i decrypt it, the string is not in a correct format. What could be the issue?

Tausif Khan
  • 31
  • 2
  • 9
  • Send byte array by stream – Renatas M. Sep 10 '18 at 11:51
  • 1
    Possible duplicate of [Send image to WebApi service](https://stackoverflow.com/questions/33367834/send-image-to-webapi-service) – Z3RP Sep 10 '18 at 12:04
  • @matt : Brother i have changed the previous question to something else, because i am blocked to ask questions. So please go through this question and please if you can help me out or do you know who can help me through this? – Tausif Khan Nov 27 '18 at 07:14
  • @Reniuz : I have edited the question. Please go through and if you can help me out.. – Tausif Khan Nov 27 '18 at 08:49
  • @Z3RP : I have edited the question. Please go through and if you can help me out.. – Tausif Khan Nov 27 '18 at 08:50
  • @TausifKhan When u work with passwords its bad when you can deyrpt the hash. You can use bcrypt i think that is a very good algo – Z3RP Nov 28 '18 at 09:52

1 Answers1

0

You need to create an anchor then link the button to the anchor. Example

    <a name="firstsection"></a>
    
    
      <a href="#firstsection">First Section</a><br>
     <a href="#secondsection">second Section</a><br>
      <a href="#thirdsection">Third Section</a><br>
      
      
    <div class ="firstsection"> Content XXX<br>
    Content XXX<br>Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    
    Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    Content XXX<br>
    
    
    
    
    
    
    
    </div>
    <a name="secondsection"></a>
    <div class="secondsection"> ContentYYYY <br>
     ContentYYYY <br>
      ContentYYYY <br>
       ContentYYYY <br>
        ContentYYYY <br>
         ContentYYYY <br>
          ContentYYYY <br>
            ContentYYYY <br>
              ContentYYYY <br>
                ContentYYYY <br>
                  ContentYYYY <br>
                    ContentYYYY <br>
          
    
    
    
    
    
    
    </div>
    <a name="thirdsection"></a>
    <div class="secondsection"> ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    ContentZZZZ<br>
    
    
    
    
    
    </div>
    
    <a href="#firstsection">First Section</a><br>
     <a href="#secondsection">second Section</a><br>
      <a href="#thirdsection">Third Section</a><br>
    

Notice how I used <a name ="firstsection"> for the first part and then calling it again using <a href="firstsection"> First Section </a>
and so on for two other part DIV
Hope this help.

Anuj
  • 170
  • 11