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;
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
add a comment
|
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
add a comment
|
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
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
password encryption
asked Sep 16 at 17:43
user46122user46122
1
1
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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.
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment
|
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.
add a comment
|
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.
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.
answered Sep 19 at 6:56
b_laoshib_laoshi
3,21614 silver badges34 bronze badges
3,21614 silver badges34 bronze badges
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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