Digital Signature Export from Etoken to pfx file [closed] - digital-signature

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am trying to export a digital signature from etoken in .pfx format. When I export the private key, it gives an error saying "Export failed. Key not valid for use in the specified state."
I am using Jailbreak for exporting the signature. The operating system is windows xp.

Signature is a product of applying a private key to the data using a certain algorithm. They are not usually contained in tokens.
You probably want to obtain a certificate with an associated private key from the device. This is almost always prohibited -- private keys are not exportable and they are protected in hardware (i.e. vendors take special measures to prevent extraction of the key using hardware approaches, not just software export).

Related

Can someone give a good analogy how to understand hyperledger fabric and all its components? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have tried to read the documentation and try to watch Youtube videos but everything is so new and overwhelming. I just need to understand basically what are those certificates, msp.
Please help me to understand 🙏.
To know the certificate, you have to know how public key cryptography works and why we need certificate in public key cryptography, how an identity is considered as correct by using digital certificate. Hyperledger Fabric uses that technique to manage identities.
To know the MSP properly, you also need to know how public key cryptography works. Msp holds public information of different identities and provide access control mechanism into network.
You can read their key concepts but it's hard to understand for actual beginners.

encrypt sensitive information [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to build a web site which at the backend uses node.js express.js and couchdb which will store some sensitive information. I want to know how is it possible to encrypt sensitive information and store it in couchdb. What is the most secure way to encrypt the data?
Thank you
Yes, it is possible. almost all languages support cryptography either directly or indirectly.
NodeJS provides a crypto module;
The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify function
for reference visit: https://nodejs.org/api/crypto.html

How to make file unreadable for certain user? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
For example, I have a file /tmp/plain.txt, and if userA do a cat, he will get correct content, for example, correct content, and if root cat it, he will get meaningless text, for example, easd$qxc%sdf. and even root copy it to HOME, he cannot get the right content.
Is it possible?
You can encrypt the file using AES symmetric encryption and keep the key safe with you. And use that key to decrypt your file and view.
You can also make it more secure by using RSA asymmetric encryption, with encrypting from a public key, and decrypting from a private key.
If you want other users not to read your files, better make sure they do not have access to root's password. You can easily manage user permissions on files, by using chmod, or by using a file manager:
chmod o-rw /tmp/plain.txt
Where o indicates all users expect you(and root),
- indicates revoking permission
rw indicates reading and writing permissions
If you want a more secure method, you'll need to encrypt your home partition. Depending on which distribution you are using, you may encrypt your the partition on installation or by simply using a partition encryption tool in a live boot session.

decryption requires private key and passphrase [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Is it possible to require BOTH a private key and a passphrase in order to decrypt a file using gpg? I understand I can encrypt the file twice once using the public key. Then encrypt that file with the passphrase. Is there an option in gpg that will do this in one step? Looking through the man file I only was able to find a key or passphrase. Any insight would be appreciated.
I understand I can encrypt the file twice once using the public key.
Then encrypt that file with the passphrase. Is there an option in gpg
that will do this in one step?
Nope. There is no such option.
(You can however PGP-encrypt a file with a symmetric passphrase while at the same time encrypting it to multiple recipients. This basically results in multiple copies of the session key [which is used to symmetrically encrypt the message] being encrypted via different means [potentially various public keys along with a shared passphrase]).

Accessing a SFTP Server - are keys necessary, if yes which public or private [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
We have been given a Username and Password for a remote SFTP Server (hosted by someone else).
My SFTP Client program (that i use) asks for Keys to proceed.
What key should i ask the SFTP provider to give us - public or private?
You do not require keys in order to access a remote host using sftp. Either key-based or password-based access will work just fine, barring explicit configuration on the remote server to require one or the other.
In order to use ssh keys, you will need to first generate an ssh keypair and then place the public key in the appropriate place on the remote server. Exactly how to do this depends on what client you're using and what sort of access you have to the remote host.
In general: you would generate keys and provide the public key to the provider. It's possible that they may do it the other way (generate they keys and give you the private key), but this is less typical.

Resources