Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Generate temporary random password from another qt project
Forum Updated to NodeBB v4.3 + New Features

Generate temporary random password from another qt project

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mostefa
    wrote on last edited by
    #1

    Hello guys,

    I am working on Qt 4.7.4 project , on embedded device imx6 (card) , i want to generate a temporary password to unlock a login page :

    The purpose is that when customers uses the embedded device , if they forgot their password we want to be able to generate random password for them , for a 15 minutes duration,

    What i need to do , is to have one other external qt project which will generate a random password , and this password must be able to unlock the login page on the embedded device (only for 15 minutes duration).

    I don't know where to start , maybe having a generateTemporaryPassword() function shared between the two project ? but what about the duration ? and how to know the current password ?

    Or maybe there is already a mechanism to generate random password for a specific duration ?

    Or maybe the idea is to generate a pseudo-random password ?

    Can you guide me where to start ?

    J.HilkJ 1 Reply Last reply
    0
    • M mostefa

      Hello guys,

      I am working on Qt 4.7.4 project , on embedded device imx6 (card) , i want to generate a temporary password to unlock a login page :

      The purpose is that when customers uses the embedded device , if they forgot their password we want to be able to generate random password for them , for a 15 minutes duration,

      What i need to do , is to have one other external qt project which will generate a random password , and this password must be able to unlock the login page on the embedded device (only for 15 minutes duration).

      I don't know where to start , maybe having a generateTemporaryPassword() function shared between the two project ? but what about the duration ? and how to know the current password ?

      Or maybe there is already a mechanism to generate random password for a specific duration ?

      Or maybe the idea is to generate a pseudo-random password ?

      Can you guide me where to start ?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @mostefa interesting problem.

      The first thing that comes to my mind, would be utilizing Quuid qt 4 only has fromRfc4122(const QByteArray & bytes) to create one from a seed.

      you could create each minute a new Uuid based on the current time, hash-map it and each new minute, you check if the login pasword/uuid ist still part of the valid QUuid map.

      Technically, it wouldn't be that "random" but still pretty hard to guess, without disassembling.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Are you thinking of something along the line of Time-based One Time Password ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        2
        • SGaistS SGaist

          Hi,

          Are you thinking of something along the line of Time-based One Time Password ?

          M Offline
          M Offline
          mostefa
          wrote on last edited by mostefa
          #4

          @SGaist

          Thank you for your relevant answer , this what i was looking for , i will try it tomorrow !

          @J-Hilk Thank you for your answer too!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved