Other Functions
Besides the core socket functions, TwiWorks has a variety of other nodes to make your communication & cryptography needs easier. Refer to the sidebar or the cards below to discover more.
📄️ BASE64 Encoding
NetShield offers BASE64 encoding/decoding. This allows you to convert a byte array into it’s BASE64 representation, and vice versa. To encode a byte array to it’s BASE64 representation, use the Base64 Encode function, as shown below:
📄️ String/Byte Conversion
To convert between a string, and it’s representation as a byte array, you can use the String to Bytes node. To convert a byte array to its string representation, you can use the Bytes to String node. Please note that you may end up with jumbled data if your byte array is not encoded using ASCII, or isn’t text at all. You can see the two nodes below:
📄️ AES CBC Encryption
NetShield supports AES CBC encryption, using the OpenSSL implementation. NetShield currently only supports 128-bit and 256-bit AES CBC encryption.
📄️ Hashing
Please note that though SHA1 is implemented, we HIGHLY discourage anyone trying to use this. This is due to a collision having been found. You can read more about this here.