VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Very Very Basic encryption and decryption routine but effective

by Andrew Simon Jones (1 Submission)
Category: String Manipulation
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This is a very simple enocde decode routine that I created for a program where I didn't want to store the password in a plaintext string. This routine then came in handy when creating a client/server program where to stop people sending spurious commands to either the server of the client - I encrypted the time in minutes and it was sent with every bit of data - if the time was out by 3 minutes then the server or client discared the data - this is just one example for this bit of code.
The routine currently runs 100 times in encryption or decryption but is a for loop - so easy to change - just make sure that the encryption and decryption routines run the same number of times.
As an example "vbcoders.com Rocks" becomes "8=EMPT\chipu{$'/49;>?DEHKRY\dehiosuv{}~$+1369;CKQRZ[^`cfglpuw~$%*0479AFKNQSZ]ekry~$*-48:ACHOVW_elrz$D`UbYhrGcifWYr7cXYrFcW_g"
The key to the encryption and decryption is the number at the beginning of the string (which is randomly chosen during encryption - and because it is a printable character gets encrypted itself on every subsequent encryption). This routine is for from unbreakable but is going to throw of the person who just wants to quickly find the password.

Rate Very Very Basic encryption and decryption routine but effective

Download Very Very Basic encryption and decryption routine but effective

Download Very Very Basic encryption and decryption routine but effective (3 KB)

Very Very Basic encryption and decryption routine but effective Comments

No comments have been posted about Very Very Basic encryption and decryption routine but effective. Why not be the first to post a comment about Very Very Basic encryption and decryption routine but effective.

Post your comment

Subject:
Message:
0/1000 characters