Encrypting files using ECDSA #4
Replies: 1 comment 2 replies
-
That's essentially the same thing, the encryption methods have to get a stream of bytes to split into smaller fixed size blocks and encrypt it to finally return a result.
It is possible. You have to read the file as a stream and pass it to your encryption method. I'm afraid there is no method in Bitcoin.Net that can help with that; but it is not too hard to implement. Here is a good SO link: https://stackoverflow.com/questions/9237324/encrypting-decrypting-large-files-net
The file type or the content type could be communicated in another way (the file name doesn't matter). For example the content could simply be plain-text or the common JSON format like what some wallets use in which case the name or extension of the encrypted file doesn't matter. For instance you could call the file |
Beta Was this translation helpful? Give feedback.
-
I was trying to implement file encryption using Denovo's ECDSA and I would like to know how can this be possible. Can I encrypt the bytes of a file without encrypting its binaries first? I tried to do it with its binaries but its size is getting 8 times bigger so it's not worth it. What I do need is encrypting the bytes of a file straight away. I haven't tried it yet, I just want to know if it's possible.
Also I'm encountering another issue. Once a file is encrypted it must contain its name too right? Encrypting only the content means that the receiver must know the extension of the file right after he/she decrypts it.
Beta Was this translation helpful? Give feedback.
All reactions