Encryption & Hashing
Explore all of WebVB Studio's cryptographic capabilities in one comprehensive demo. Encrypt and decrypt text with AES-256, generate hashes with MD5, SHA-256, and SHA-512, create HMAC signatures for data integrity, and generate cryptographically secure random keys. Essential knowledge for building secure applications that handle sensitive data.
What You'll Learn
Controls Used
Use Cases
- Data encryption
- Password hashing
- API signature generation
- Secure data storage
Code Preview
Here's a taste of the code. Open the full example in WebVB Studio to explore, modify, and run it.
Sub cmdEncrypt_Click
Dim key As String
key = txtKey.Text
Dim encrypted As String
encrypted = Encrypt(txtInput.Text, key)
txtOutput.Text = encrypted
End Sub
Sub cmdDecrypt_Click
Dim key As String
key = txtKey.Text
Dim decrypted As String
decrypted = Decrypt(txtInput.Text, key)
txtOutput.Text = decrypted
End Sub
Sub cmdHash_Click
txtOutput.Text = Hash(txtInput.Text, "SHA-256")
End Sub def cmdEncrypt_Click():
encrypted = Encrypt(txtInput.Text, txtKey.Text)
txtOutput.Text = encrypted
def cmdDecrypt_Click():
decrypted = Decrypt(txtInput.Text, txtKey.Text)
txtOutput.Text = decrypted
def cmdHash_Click():
txtOutput.Text = Hash(txtInput.Text, "SHA-256") Try the Encryption & Hashing Example
Open this example in WebVB Studio and start experimenting. Modify the code, tweak the controls, and make it your own.
Open in WebVB StudioRelated Examples
API Login (Bearer Token)
IntermediateAuthenticate with username/password to get a bearer token for secure API requests.
REST API Client
IntermediateConnect to REST APIs - fetch, create, update and delete data.
Notepad
IntermediateRead and Write files to local virtual storage.