Home

Compare versions of application

It is common for you to want to check whether your application is the latest version of the application. It is possible to compare the version of your application against a version number that you have as a string You can achieve this by doing something like; Dim curVer As Version = My.Application.Info.Version Dim availVer As Version = New Ver...

Read more

Retrieving your forgotten wireless password

I recently set up a wireless network in my new flat with a super duper awesomely strong password, set up my laptop to connect to the wireless and then promptly forgot to actually write down what the wireless password was. Thankfully some genius had already experienced this problem and had created an application to retrieve wireless passwords fr...

Read more

Check whether a port is open on a remote machine

Sometimes you would like to know whether a port is open on a remote machine. Now while this is no nmap, the following code should give you an idea on how to check whether a port is open. Private Function isRemotePortOpen(ByVal hostName As String, ByVal port As Integer) As Boolean     Dim client As TcpClient = Nothing     Dim rtn as Boolean     ...

Read more

Calculate SHA512 hash of string or file

This class implements the IHasher interface that you can find here. ''' ''' SHA512 hash class from Satal Keto's library ''' https://samjenkins.com ''' Version 1.0.0.1 ''' Imports System.IO Imports System.Security.Cryptography Namespace Security.Hash     Public Class SHA512Hash         Implements IHasher         Public Function hashOfFile(ByVal ...

Read more

Calculate SHA384 hash of string or file

This class implements the IHasher interface that you can find here. ''' ''' SHA384 hash class from Satal Keto's library ''' https://samjenkins.com ''' Version 1.0.0.1 ''' Imports System.IO Imports System.Security.Cryptography Namespace Security.Hash     Public Class SHA384Hash         Implements IHasher         Public Function hashOfFile(ByVal ...

Read more

Calculate SHA256 hash of string or file

This class implements the IHasher interface that you can find here. ''' ''' SHA256 hash class from Satal Keto's library ''' https://samjenkins.com ''' Version 1.0.0.1 ''' Imports System.IO Imports System.Security.Cryptography Namespace Security.Hash     Public Class SHA256Hash         Implements IHasher         Public Function hashOfFile(ByVal ...

Read more

Calculate SHA1 hash of string or file

This class implements the IHasher interface that you can find here. ''' ''' SHA1 hash class from Satal Keto's library ''' https://samjenkins.com ''' Version 1.0.0.1 ''' Imports System.IO Imports System.Security.Cryptography Namespace Security.Hash     Public Class SHA1Hash         Implements IHasher         Public Function hashOfFile(ByVal file...

Read more

Calculate RIPEMD160 Hash of string or file

This class implements the IHasher interface that you can find here. ''' ''' RIPEMD160 hash class from Satal Keto's library ''' https://samjenkins.com ''' Version 1.0.0.1 ''' Imports System.IO Imports System.Security.Cryptography Namespace Security.Hash     Public Class RIPEMD160Hash         Implements IHasher         Public Function hashOfFile(...

Read more