VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Very Very Basic encryption and decryption routine but effective

Andrew Simon Jones  (1 Submission)   String Manipulation   VB Script   Intermediate   Wed 3rd February 2021

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 (4(4 Vote))

Download Very Very Basic encryption and decryption routine but effective

Very Very Basic encryption and decryption routine but effective Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters