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 8484247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:19:40+00:00 2026-06-10T20:19:40+00:00

I’m implementing a login mechanism for a mobile device using bcrypt and AES. The

  • 0

I’m implementing a login mechanism for a mobile device using bcrypt and AES. The user will have to login using a password, which will then be hashed with bcrypt and compared to the hash in the database. The login transaction will, of course, take place over SSL, and the server will be configured to only serve SSL. That part is pretty straightforward.

However, I will also want to store a cookie so the user does not have to log in each time. The cookie will be automatically deleted from the device after 24 hours. I was planning on storing an AES encrypted string comprised of a date-time stamp and the bcrypt hash. The AES implementation is where I’m having difficulty. I was planning on using Encryptamajig , which is “a simple wrapper to the .NET AES encryption algorithm functionality,” but then I saw this issue posted on it which has not yet been fixed. (The issue has to do with using the same derivation function to generate the IV as the key).

My question is, is this a huge issue that should prevent me from using this wrapper?
(my cryptography knowledge is increasing, but still relatively low; however, if I understand correctly, this is close to the same issue that makes WEP so easy to crack)

If it is, is there a best/better practice for using .Net’s AES Class? It seems that most of the answers currently on SO are older, and don’t deal with the AES class at all.

  • 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-06-10T20:19:42+00:00Added an answer on June 10, 2026 at 8:19 pm

    IMO the cookie should be a random token stored in a autologin table in the database. Then you can invalidate those tokens without changing the user’s password.

    When using AES on .net, I’d use one of the built in classes, either Rijndael with a block-size of 128 or Aes. I’d only use other implementations, if I need the additional speed(The build in crypto classes are often slow).

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have an autohotkey script which looks up a word in a bilingual dictionary
I have a text area in my form which accepts all possible characters from
I have thousands of HTML files to process using Groovy/Java and I need to
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

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.