I am using a VPN to ensure to encrypt my traffic.
I wonder though if I could check somehow if the datastream really is encrypted?
Information Security Stack Exchange is a question and answer site for information security professionals. It only takes a minute to sign up.Sign up to join this community
Do some sort of packet capture. Depending on your level of concern and technical ability you have two relatively easy methods available.
If you have tcpdump installed just run
tcpdump -A -c 200 if the output is clear text then this is a clear answer. If it is not then possibly your traffic is encrypted. (note: it could just be encoded and not encrypted, you have to verify this).
Another option is wireshark. You can do the same analysis but with a nice GUI to filter out specific traffic and follow TCP streams.
These are the tools, you will have to do a meaningful analysis to actually verify encryption.
You can use Entropy Estimation for the stream data. Let's say the payload is encoded in ASCII or ANSI and for printable characters values from 32 to 127 are used . Based on the entropy of the encoded symbols of the stream, you can develop an algorithm that identiﬁes any text blocks within the payload (in case of unencrypted data) or not. In this case,the entropy is used to identify statistical variation of bytes seen on the stream.
The other option is to use the Chi-Squared Test for detecting encrypted traffic.