Using Standard Tools or coding custom ones #67
-
I wanted to know how can I achieve the same level of symmetric encryption security in Kryptor using GPG or OpenSSL? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
I'm afraid this is rather out of scope as you're asking about other tools. A lot of detail is also missing as it's unclear whether you're talking about encrypting with a password, private key, to someone else's public key, etc. The algorithms used in Kryptor are listed here, and I strongly suspect you cannot do something equivalent with either tool, although I've never used OpenSSL. The most comparable tool is probably age/rage. However, Kryptor has some design changes to address limitations with those. There's also Covert, which inspired/informed some of the v4 design. In terms of replicating Kryptor, the specification is on the website. Age and Covert also have some. |
Beta Was this translation helpful? Give feedback.
-
I’m talking about symmetric encryption using a secret key. |
Beta Was this translation helpful? Give feedback.
-
so is using the algoithm in the code I provided above safe? |
Beta Was this translation helpful? Give feedback.
-
By the way, does kryptor "encrypt then mac" or no? |
Beta Was this translation helpful? Give feedback.
There aren't really any tutorials I can recommend. Starting out in cryptography is quite tricky and requires a lot of reading. It's best to read the libsodium documentation, the documentation for your libsodium binding, best/recommend practice type of guides like this and this, read the RFCs/Internet-Drafts for algorithms you're using like this, read up on existing protocols like the specifications I already linked, read some cryptography books, and read relevant questions on Cryptography Stack Exchange and r/crypto.
Some other file encryption tools to look at are Encpipe and Eureka. The safest approach in libsodium is to use the secretstream API, but not every binding supports that, and …