Questions tagged [file-format]

A file format is a particular way that information is encoded for storage in a computer file.

Filter by
Sorted by
Tagged with
2 votes
2 answers

NIST random number generators ASCII input file format problem

I have temporal data from experiment and by setting a threshold, I convert them to zeros and ones. I saved these binary bits to txt file (normal txt file from MATLAB) with each line has 32 bits (total ...
O. Nawwar's user avatar
3 votes
0 answers

Why is WalnutDSA specified for COSE?

WalnutDSA was a 1st-round entrant in the NIST Post-Quantum Cryptography project. It had a significant cryptanalytic break close to almost breaking the security of the cryptosystem, only survived due ...
DannyNiu's user avatar
  • 9,080
2 votes
0 answers

Can I store a public key used to verify a Schnorr signature in PEM format?

I want to ask if there is any way to store a Schnorr signature key in PEM format, or any other standardized format. And, if possible, I would like to know if that's possible to be done in C language; ...
Razvan Marian's user avatar
2 votes
1 answer

Why use ASCII armor for file encryption?

GPG and age both offer a --armor option but what is the use case when it comes to file encryption? Surely most channels allow for transmitting binary data nowadays? ...
guest's user avatar
  • 23
1 vote
1 answer

How to hide multiple types of information in the same file?

I have a vague memory of watching a video of a guy "unraveling the secret story / lore" from the game Doki Doki Literature Club. And I remember that he took a file, converted it to .txt and ...
MessiasOF's user avatar
0 votes
0 answers

Can there be different representation of the same public PGP key?

I have two PGP public key files: File1 was created with Kleopatra / Gpg4win. File2 was created by the following procedure: Import File1 as public key for EmailAccount1 into Thunderbird 78.4.0 Send ...
Forgotmypassword's user avatar
0 votes
0 answers

How to recover deleted-recovered windows efs-encrypted files?

I'd some EFS-encrypted files on a HDD which were deleted unintentionally. I used a data recovery software to restore them, but afterward, windows does not recognize those recovered files as encrypted ...
Ehsan Khodarahmi's user avatar
4 votes
1 answer

How does gpg know what cipher algorithm is needed for decryption?

I am using gpg to make encrypt a tar.gz. My first try uses --verbose --symmetric and then the decryption is done with ...
Trevor Boyd Smith's user avatar
1 vote
3 answers

Do all files have a hash / checksum?

I am curious If every single digital file has a hash and/or a checksum. When verifying my downloaded files using hdiutil on mac os, about 90% of my files report some sort of checksum. However, when i ...
DanRan's user avatar
  • 111
3 votes
1 answer

Is there a standard or recommended format for encrypted data, with algorithmic agility?

I am storing relatively small (from a few bytes to less than 50MB) amounts of encrypted data for an extended period. This data is encrypted using a custom tool that has already been in use for some ...
vezult's user avatar
  • 131
6 votes
1 answer

Public-key format for ECDSA as in FIPS 186-4?

What is the public-key format for ECDSA as in FIPS 186-4, and where is it formally defined? In particular, are there variants beyond Cartesian coordinates? Is that a pair of bitstrings, or a ...
fgrieu's user avatar
  • 140k
7 votes
1 answer

ECDSA private key format

Here's a sample ECDSA private key (I don't use it for anything): ...
neubert's user avatar
  • 2,917
4 votes
1 answer

Is there a checksum that gives the same checksum when in a text file?

Let's say I have a text file (crypto.txt). Let's assume the checksum function can be any type of function (MD5, SHA-1, anything else). Is there a way that the checksum value IN the file (crypto.txt ...
Pat's user avatar
  • 43
148 votes
1 answer

What are the differences between .pem, .csr, .key, .crt and other such file extensions?

I'm new to SSL / TLS, and I want to work with the OpenSSL toolkit. What do .pem and .csr stand for? I do know that ...
Richard R. Matthews's user avatar
5 votes
1 answer

What is the best practices for storing ed25519 private keys which is used by nodes of my application to communicate with each other?

I am developing some kind of a P2P network where the nodes communicate with each other via TCP and each message is signed by Ed25519 private key. I use libsodium for signing and signature verification....
defuz's user avatar
  • 153
5 votes
1 answer

Binary format of encrypted PGP private key?

Short Version of the Question: I would like to remove any predictable information from an encrypted private keys binary representation. Does anyone have a hint where the binary format for encrypted ...
KayleeTheMech's user avatar
0 votes
1 answer

Considerations on using a single long-term key for file encryption

I'm thinking about designing my own container file format that allows me to store a file in it along with, say, a thumbnail or other metadata. Some of these files are confidential and therefore must ...
mrtnmrkl's user avatar
0 votes
1 answer

Why many passes at file removal? [closed]

Why file removal tools offer gost 2 passes and British 3 passes or even gutman 35 passes options? In which case the single pseudo random pass is not enough?
Alex's user avatar
  • 101
7 votes
1 answer

Standard format to encode AES cipher and random IV

As far as I understood, a secret key (same length as CBC block size) and an initialization vector (IV) are needed to decrypt a AES-256-CBC encrypted string. As the IV should better be random, it has ...
lathspell's user avatar
  • 173
3 votes
1 answer

PGP public RSA key format

I have been trying to use Go (I could post the code, but I think I posted enough already...) to generate a PGP RSA key. However every time I try to encrypt something with it, something fails. However, ...
Travis's user avatar
  • 131
3 votes
1 answer

How to create a PEM file for storing an RSA key?

I have an RSA private key $\{d,n\}$ and a public key $\{e,n\}$, where $n$ is the modulus, and I also have the prime factors $p$ and $q$ of $n$. I want to create a PEM file containing this information,...
NxA's user avatar
  • 103
-1 votes
1 answer

What is contained in a RSA key file? [duplicate]

Consider a RSA key file like this: ...
NetCoder's user avatar
0 votes
1 answer

How exactly to extract information base 10 from a PGP RSA key pair?

I think I understand the mathematics of RSA ok. I'm not so computer savvy though. How, exactly, can I extract $n$, $e$, $d$, $p$ and $q$ from a PGP RSA public key pair? Is there like a converter ...
Joe's user avatar
  • 121
44 votes
5 answers

What is the SSL private key file format?

I was researching about how to encrypt with RSA. I understood everything but not the format of the private keys. In the phpseclib (RSA in PHP), you can import your private key (private.key format) ...
tor's user avatar
  • 563