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
3 votes
0 answers
57 views

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 ...
  • 7,168
2 votes
0 answers
78 views

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; ...
1 vote
1 answer
688 views

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? ...
  • 13
1 vote
1 answer
108 views

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 ...
0 votes
0 answers
161 views

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 ...
0 votes
0 answers
55 views

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 ...
3 votes
1 answer
1k views

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 ...
1 vote
3 answers
1k views

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 ...
  • 111
3 votes
1 answer
101 views

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 ...
  • 131
6 votes
1 answer
10k views

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 ...
  • 126k
7 votes
1 answer
15k views

ECDSA private key format

Here's a sample ECDSA private key (I don't use it for anything): ...
  • 2,805
4 votes
1 answer
2k views

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 ...
  • 43
136 votes
1 answer
202k views

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 ...
5 votes
1 answer
1k views

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....
  • 153
5 votes
1 answer
1k views

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 ...
0 votes
1 answer
131 views

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 ...
0 votes
1 answer
29 views

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?
  • 101
7 votes
1 answer
4k views

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 ...
  • 173
3 votes
1 answer
17k views

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, ...
  • 131
3 votes
1 answer
6k views

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,...
  • 103
-1 votes
1 answer
5k views

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

Consider a RSA key file like this: ...
0 votes
1 answer
855 views

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 ...
  • 111
44 votes
5 answers
154k views

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) ...
  • 563