OpenSSL is an open source software toolkit that implements the SSL/TLS protocol, as well as a general cryptographic library.
7
votes
2answers
103 views
Encrypt message for sending over non secure network
wRecently needed to swap keys with a colleague on the other side of the country.
This script encrypts a file using the other persons public key that is stored on github. It outputs a script that will ...
1
vote
0answers
69 views
Complete async OpenSSL example
I am trying to create a fully async example of a client and server using SSL.
I think these are the required assumptions:
Connecting may require socket readability and writeability notifications.
...
2
votes
2answers
51 views
Send and receive data code using OpenSSL
I need to send and receive data. Here is solution for my original problem. I want to know how safe my finished code is and how I can improve it. Here is my first try. Now I need to get review for my ...
3
votes
2answers
77 views
Send and receive data code
I need to send and receive data. Here is solution for my original problem. I want to know how safe my finished code is and how I can improve it.
...
1
vote
1answer
64 views
Making an HTTPS request more readable
I think the snippet is too nested having too many blocks. It needs to be refactored to make the logic more readable.
The try exception is the first level block
...
1
vote
3answers
444 views
11
votes
1answer
116 views
Bitcoin address validator in C
Here is a Bitcoin address validator I am looking to have reviewed in C. Normally I would have the enum and function prototypes declared in a header file, but I ...
7
votes
1answer
2k views
Let OpenSSL decide which TLS protocol version is used by default
I use Gem in a Box, a Ruby project that allows to create personal self-hosted gem repositories. Gem in a Box uses httpclient to connect to the gem repository. After ...
7
votes
3answers
85 views
Encrypt and backup folder to email daily, when online
I have a backup script which should backup a folder and send it to email. This should be done once a day. As this is on my laptop which is not online 24/7 I need to check that I am online and can send ...
7
votes
2answers
775 views
OpenSSL PBKDF2-HMAC-SHAx proof of concept
I have regrettably been away from C programming for a very long time, so I'd like to get a quick code review of a first proof of concept, before I get too far into adding capabilities, using the ...
11
votes
3answers
407 views
Pi Benchmarking in C
I wrote the following program to calculate n digits of Pi (where n could be anything, like 10M) in order to benchmark the CPU and it works perfectly (without OpenMP):
...
5
votes
2answers
2k views
HMAC-SHA1 implementation
I am trying out a small piece of code that would generate HMAC-SHA1. I have been asked to code the HMAC implementation myself using the OpenSSL libs for SHA1 calculation.
After 'wiki'ing for the ...
4
votes
1answer
351 views
Adding trusted timestamps to Git commits
I don't write too many bash scripts and I can usually struggle my way through getting the odd thing I need working, but my scripts always seem to feel a bit brittle. Below is a script I wrote for ...
7
votes
4answers
363 views
Making this password search more intelligent
In a homework, there is an exercise in which I have a script that is used to search for a password.
One of the questions is if is possible to make it "more intelligent", and I'm stuck on it.
...