VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CipherII

John Cui  (1 Submission)   Encryption   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

A StreamCipher encryption similar to the first 'Cipher' but now it can encrypt any text or binary file.

Inputs
PlainText(the text to be encrypted/decrypted), Secret(the password)

Assumes
There is only one function to Encrypt/Decrypt the strings. It is to this point stable that you can encrypt the same string multiple times using different passwords every time and then decrypt in the reverse order.

Returns
Encrypted/Decrypted string

Side Effects
I tested the code in VB6.0 but I mainly used code that's been part of VB for a while so it should work with ver. 3 and up. One side effect is the cipher speed. It's still a little slow but I'm working on an 8, 16, and 32 cipher code which would hopefully be fast. Warning!! Keep the strings your working with in memory rather than in an object such as a textbox because there would be loss of data when a string with ascii < 32 is used in a textbox.

API Declarations

Rate CipherII (6(6 Vote))
CipherII.bas

CipherII Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters