D
D
DollyPapper2017-09-16 11:20:26
Python
DollyPapper, 2017-09-16 11:20:26

Storing a hash in a script?

Friends, now I am writing a small utility for storing encrypted passwords. It’s not a thankful task to store it simply in a hash in the script itself, having accessed the script, we will see the hash, and on its basis you can calculate the password.
I came up with this scheme: we have a certain token that we store in our heads. It is rather small, let's say 5-6 letters, it is an ordinary word. When the utility requests this token, we enter it + add a salt, based on it, the first hash is calculated, which will be the password. Then we hash this hash again, and store the second hash in the utility script.
I'm not strong in cryptography at all. Can you tell me if such a scheme will be secure? Or are there other good methods for securely storing passwords in encrypted form? Ready-made solutions are not particularly satisfactory. I used Folder Lock but it has 2 huge problems:
1) When deleting, he asked me if he should save the decrypted copy to some place, and there was no limit to his surprise when he simply took and saved the folder with the password file to another disk.
2) He is not mobile. The script can be taken with you on a flash drive anywhere, and it will work on any systems, and FL creates virtual hard and encrypts it, + it is not under Linux, but it is on the laptop.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2017-09-16
@sergiks

Roughly sorting through all the possible options for “5-6 letters” will turn out very quickly.

U
Uno, 2017-09-16
@Noizefan

Use a dozen different cryptosystems - a waste of time, but +10 crypto strength.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question