Making a password avaible during fixed time intervalsMaking touchpad and resume password changes permanentHow can I access my http site (non-Apache) through https?Unable to login after changing User PasswordCannot type disk decryption password during boot

Producing a print layout using 2nd map view in QGIS

Only return recordset(s) from Stored Procedure if it has rows

Exactly what color was the text on monochrome terminals with green-on-black and amber-on-black screens?

Who is Gail Gasram?

What does "Massage with salt" mean in a recipe?

Highest scoring words based on distance travelled along the alphabet

What is the difference between "cat < filename" and "cat filename"?

Where should I search for computations of group cohomology rings of not-too-complicated finite groups?

Birthplace vs living place

Why should I invest so much in 401(k)?

Pointlessly recurse down the alphabet

How often are there lunar eclipses on Jupiter

What qualifies as the solving of a paradox?

In a world where Magic steam Engines exist what would keep people from making cars

Do I even like doing research?

Are there any consequences of a Critical Failure on attack rolls?

Why is SpaceX not also working on a smaller version of Starship?

Is Chika Ofili's method for checking divisibility for 7 a "new discovery" in math?

Convention for inverted signal

My advisor wants me to make my PhD thesis weaker

Why 401k contribution as % of salary vs. fixed amount per pay check?

Algorithmic thinking problems

What is the best way to go about re-learning an instrument?

A Ukrainian idiom meaning "on one's last legs"



Making a password avaible during fixed time intervals


Making touchpad and resume password changes permanentHow can I access my http site (non-Apache) through https?Unable to login after changing User PasswordCannot type disk decryption password during boot






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I would like to store and encrypt a password that I can access only during specific time intervals, such as after 9 pm. (The reason being that I force myself to stick to behavioural commitments, enforced by password-protected anti-procrastination software.)



An online solution is available at lockbox.pluckeye.net, but I would like to store the password locally or in a Dropbox, in case the service is discontinued.



I would appreciate any methods/software tips!










share|improve this question































    0


















    I would like to store and encrypt a password that I can access only during specific time intervals, such as after 9 pm. (The reason being that I force myself to stick to behavioural commitments, enforced by password-protected anti-procrastination software.)



    An online solution is available at lockbox.pluckeye.net, but I would like to store the password locally or in a Dropbox, in case the service is discontinued.



    I would appreciate any methods/software tips!










    share|improve this question



























      0













      0









      0








      I would like to store and encrypt a password that I can access only during specific time intervals, such as after 9 pm. (The reason being that I force myself to stick to behavioural commitments, enforced by password-protected anti-procrastination software.)



      An online solution is available at lockbox.pluckeye.net, but I would like to store the password locally or in a Dropbox, in case the service is discontinued.



      I would appreciate any methods/software tips!










      share|improve this question














      I would like to store and encrypt a password that I can access only during specific time intervals, such as after 9 pm. (The reason being that I force myself to stick to behavioural commitments, enforced by password-protected anti-procrastination software.)



      An online solution is available at lockbox.pluckeye.net, but I would like to store the password locally or in a Dropbox, in case the service is discontinued.



      I would appreciate any methods/software tips!







      password encryption






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 16 at 17:43









      user46122user46122

      1




      1























          1 Answer
          1






          active

          oldest

          votes


















          -1



















          What you describe involves a chicken & egg problem. Using encryption, how would you encrypt your password such that it can only be decrypted with information that is not available in the present? If you don't know that information until a time in the future, you can't encrypt your password now.



          The simplest option it probably just to give that password to someone you trust and make them promise they will not give it back to you until the time that you specify. Better yet, have them create the password so that you don't have access to it to begin with. If you don't completely trust the other person, you could type the first half of the passphrase and have them type the second half. If neither of you reveals his/her portion of the password to the other, neither of you would be able to access the service without the other's help.



          Other solutions I can think of would involve setting up a service like this of your own and then locking yourself out of it. You could set up a server that will tell you the password only when queried at pre-defined times. Then turn administrative access over to another person or lock yourself out so that you are unable to break in and obtain your password anytime you want it.



          If you just want a simple script that would accomplish this on the fly, try something like the following script. Just realize that if the script is somehow terminated, your password is lost forever if you don't have a copy somewhere else that is inconvenient to access like a safe deposit box or entrusted with a friend.



          #!/bin/bash

          echo "Nothing will be displayed as you type"
          read -sp "Password to store: " pwd && echo
          while :
          do
          read -p "What time should I reveal the password: " time
          date -d "$time" && break
          echo "Invalid time format. Try again"
          done
          echo "Please destroy all records of your password now. Except for one copy that you will not have convenient access to."

          unlockTime=$(date -d "$time" +%s)
          now=$(date +%s)

          timeout=$((unlockTime - now))
          sleep $timeout && echo "Your password: $pwd" || echo "Shame on you for killing sleep. No password for you!"


          This script will prompt you for the password and a time at which to reveal it. Then it will keep the password concealed "safely" in RAM (don't let the script die) until the time you specified. If you are brazen enough to kill the sleep command, this script will terminate without revealing the password! Simply copy the script text above into a plaintext file saved with a .sh extension, make it executable, and run it from a terminal window.






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174578%2fmaking-a-password-avaible-during-fixed-time-intervals%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            -1



















            What you describe involves a chicken & egg problem. Using encryption, how would you encrypt your password such that it can only be decrypted with information that is not available in the present? If you don't know that information until a time in the future, you can't encrypt your password now.



            The simplest option it probably just to give that password to someone you trust and make them promise they will not give it back to you until the time that you specify. Better yet, have them create the password so that you don't have access to it to begin with. If you don't completely trust the other person, you could type the first half of the passphrase and have them type the second half. If neither of you reveals his/her portion of the password to the other, neither of you would be able to access the service without the other's help.



            Other solutions I can think of would involve setting up a service like this of your own and then locking yourself out of it. You could set up a server that will tell you the password only when queried at pre-defined times. Then turn administrative access over to another person or lock yourself out so that you are unable to break in and obtain your password anytime you want it.



            If you just want a simple script that would accomplish this on the fly, try something like the following script. Just realize that if the script is somehow terminated, your password is lost forever if you don't have a copy somewhere else that is inconvenient to access like a safe deposit box or entrusted with a friend.



            #!/bin/bash

            echo "Nothing will be displayed as you type"
            read -sp "Password to store: " pwd && echo
            while :
            do
            read -p "What time should I reveal the password: " time
            date -d "$time" && break
            echo "Invalid time format. Try again"
            done
            echo "Please destroy all records of your password now. Except for one copy that you will not have convenient access to."

            unlockTime=$(date -d "$time" +%s)
            now=$(date +%s)

            timeout=$((unlockTime - now))
            sleep $timeout && echo "Your password: $pwd" || echo "Shame on you for killing sleep. No password for you!"


            This script will prompt you for the password and a time at which to reveal it. Then it will keep the password concealed "safely" in RAM (don't let the script die) until the time you specified. If you are brazen enough to kill the sleep command, this script will terminate without revealing the password! Simply copy the script text above into a plaintext file saved with a .sh extension, make it executable, and run it from a terminal window.






            share|improve this answer






























              -1



















              What you describe involves a chicken & egg problem. Using encryption, how would you encrypt your password such that it can only be decrypted with information that is not available in the present? If you don't know that information until a time in the future, you can't encrypt your password now.



              The simplest option it probably just to give that password to someone you trust and make them promise they will not give it back to you until the time that you specify. Better yet, have them create the password so that you don't have access to it to begin with. If you don't completely trust the other person, you could type the first half of the passphrase and have them type the second half. If neither of you reveals his/her portion of the password to the other, neither of you would be able to access the service without the other's help.



              Other solutions I can think of would involve setting up a service like this of your own and then locking yourself out of it. You could set up a server that will tell you the password only when queried at pre-defined times. Then turn administrative access over to another person or lock yourself out so that you are unable to break in and obtain your password anytime you want it.



              If you just want a simple script that would accomplish this on the fly, try something like the following script. Just realize that if the script is somehow terminated, your password is lost forever if you don't have a copy somewhere else that is inconvenient to access like a safe deposit box or entrusted with a friend.



              #!/bin/bash

              echo "Nothing will be displayed as you type"
              read -sp "Password to store: " pwd && echo
              while :
              do
              read -p "What time should I reveal the password: " time
              date -d "$time" && break
              echo "Invalid time format. Try again"
              done
              echo "Please destroy all records of your password now. Except for one copy that you will not have convenient access to."

              unlockTime=$(date -d "$time" +%s)
              now=$(date +%s)

              timeout=$((unlockTime - now))
              sleep $timeout && echo "Your password: $pwd" || echo "Shame on you for killing sleep. No password for you!"


              This script will prompt you for the password and a time at which to reveal it. Then it will keep the password concealed "safely" in RAM (don't let the script die) until the time you specified. If you are brazen enough to kill the sleep command, this script will terminate without revealing the password! Simply copy the script text above into a plaintext file saved with a .sh extension, make it executable, and run it from a terminal window.






              share|improve this answer




























                -1















                -1











                -1









                What you describe involves a chicken & egg problem. Using encryption, how would you encrypt your password such that it can only be decrypted with information that is not available in the present? If you don't know that information until a time in the future, you can't encrypt your password now.



                The simplest option it probably just to give that password to someone you trust and make them promise they will not give it back to you until the time that you specify. Better yet, have them create the password so that you don't have access to it to begin with. If you don't completely trust the other person, you could type the first half of the passphrase and have them type the second half. If neither of you reveals his/her portion of the password to the other, neither of you would be able to access the service without the other's help.



                Other solutions I can think of would involve setting up a service like this of your own and then locking yourself out of it. You could set up a server that will tell you the password only when queried at pre-defined times. Then turn administrative access over to another person or lock yourself out so that you are unable to break in and obtain your password anytime you want it.



                If you just want a simple script that would accomplish this on the fly, try something like the following script. Just realize that if the script is somehow terminated, your password is lost forever if you don't have a copy somewhere else that is inconvenient to access like a safe deposit box or entrusted with a friend.



                #!/bin/bash

                echo "Nothing will be displayed as you type"
                read -sp "Password to store: " pwd && echo
                while :
                do
                read -p "What time should I reveal the password: " time
                date -d "$time" && break
                echo "Invalid time format. Try again"
                done
                echo "Please destroy all records of your password now. Except for one copy that you will not have convenient access to."

                unlockTime=$(date -d "$time" +%s)
                now=$(date +%s)

                timeout=$((unlockTime - now))
                sleep $timeout && echo "Your password: $pwd" || echo "Shame on you for killing sleep. No password for you!"


                This script will prompt you for the password and a time at which to reveal it. Then it will keep the password concealed "safely" in RAM (don't let the script die) until the time you specified. If you are brazen enough to kill the sleep command, this script will terminate without revealing the password! Simply copy the script text above into a plaintext file saved with a .sh extension, make it executable, and run it from a terminal window.






                share|improve this answer














                What you describe involves a chicken & egg problem. Using encryption, how would you encrypt your password such that it can only be decrypted with information that is not available in the present? If you don't know that information until a time in the future, you can't encrypt your password now.



                The simplest option it probably just to give that password to someone you trust and make them promise they will not give it back to you until the time that you specify. Better yet, have them create the password so that you don't have access to it to begin with. If you don't completely trust the other person, you could type the first half of the passphrase and have them type the second half. If neither of you reveals his/her portion of the password to the other, neither of you would be able to access the service without the other's help.



                Other solutions I can think of would involve setting up a service like this of your own and then locking yourself out of it. You could set up a server that will tell you the password only when queried at pre-defined times. Then turn administrative access over to another person or lock yourself out so that you are unable to break in and obtain your password anytime you want it.



                If you just want a simple script that would accomplish this on the fly, try something like the following script. Just realize that if the script is somehow terminated, your password is lost forever if you don't have a copy somewhere else that is inconvenient to access like a safe deposit box or entrusted with a friend.



                #!/bin/bash

                echo "Nothing will be displayed as you type"
                read -sp "Password to store: " pwd && echo
                while :
                do
                read -p "What time should I reveal the password: " time
                date -d "$time" && break
                echo "Invalid time format. Try again"
                done
                echo "Please destroy all records of your password now. Except for one copy that you will not have convenient access to."

                unlockTime=$(date -d "$time" +%s)
                now=$(date +%s)

                timeout=$((unlockTime - now))
                sleep $timeout && echo "Your password: $pwd" || echo "Shame on you for killing sleep. No password for you!"


                This script will prompt you for the password and a time at which to reveal it. Then it will keep the password concealed "safely" in RAM (don't let the script die) until the time you specified. If you are brazen enough to kill the sleep command, this script will terminate without revealing the password! Simply copy the script text above into a plaintext file saved with a .sh extension, make it executable, and run it from a terminal window.







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Sep 19 at 6:56









                b_laoshib_laoshi

                3,21614 silver badges34 bronze badges




                3,21614 silver badges34 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174578%2fmaking-a-password-avaible-during-fixed-time-intervals%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?