S
S
Someone01102021-09-02 14:27:55
Python
Someone0110, 2021-09-02 14:27:55

Please explain what are the arguments in this sstash library?

Hello, I found such a library called sstash. Reading the documentation (on github) I understand that it is designed to create a "protected disk" as it is written there (correct me if I misunderstood). The main topic of my question is, what are these arguments, i.e. what does each argument do?

from sstash.sstash import SecureStash
ss = SecureStash('my_stash', 'my_password1234')
ss.write_value(['project', 'SomeService', 'token1'], b'some text in bytes')

The first argument (project), as I understand it, is the name, and the second and third arguments are what? For example, if you read ( ss.read_value ) and specify it incorrectly in the second or third argument, then an error will occur, with the first one, it can be understandably the name, and the second and third are probably some kind of identifiers? Please explain everything on your fingers, as there is little information about this library, and the documentation explains little.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2021-09-02
@Someone0110

learn to read the code
https://github.com/realcr/sstash/blob/master/sstas...
Everything is clear there.
PS what for is this ancient unsupported shit to be touched at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question