EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First New
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom

Knowledge Bank

Discussion Forums
Enigma Chat New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Enigma Zine
Downloads
Tools New

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Hakipedia: An open collaborative for all your information security needs.

The Urinal

Click Here To Vote For EG!

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site.

enigma group

enigma group

enigma group

enigma group

Enigma Group's Code Bank


[VB] ASCII Shifting Module

By: blink_212  -  Date Submitted: 2009-06-23 14:11:05

  1. Function Crypt(Direction As Integer, Shift As Integer, StrText As String) As String
  2. Dim x As Long
  3. Dim TempInt As Integer
  4.  
  5. x = 1
  6.  
  7. StrText = Replace(StrText, vbCrLf, "")
  8.  
  9. If Direction = 1 Then ' 1 = forwards, 0 = backwards
  10.  
  11. Do Until x > Len(StrText)
  12. TempInt = Asc(Mid(StrText, x, 1)) + Shift
  13. Crypt = Crypt + Chr(TempInt)
  14. x = x + 1
  15. Loop
  16.  
  17. End If
  18.  
  19.  
  20. If Direction = 0 Then
  21.  
  22. Do Until x > Len(StrText)
  23. TempInt = Asc(Mid(StrText, x, 1)) - Shift
  24. Crypt = Crypt + Chr(TempInt)
  25. x = x + 1
  26. Loop
  27.  
  28. End If
  29.  
  30.  
  31. End Function
  32.  
Return to visualbasic category list

Who's Online

485 Guests, 101 Users
ckryptix, asapong, Ios, viper0i0, Diznablo, rabbidmind, Nasrudin, CollapsingWalls, mehtaparag, bitstrike, jnony, C, Nicid1, Nusquam-Redono-Sapientia, bazcrown, saifulfaizan, The End, Ultraminor, psychomarine, st3alth, themastersinner, pgmrlink, login, lionaneesh, ishkur88, mahraja, Mac, chekifr, gandalf88, Vap0r, t0ast, tantrum6226, BnE, Distorted, Psiber_Syn, Ausome1, invas10n, oldgoat, freedaysbecumei, BinaryShinigami, Rex_Mundi, Red_beard, Strobeflux, s0m3nak3dguy, Descent, teehee, machupicchu, Genetix, Anandarl, NotMyOwn, thegamerdude, Godzila, popo12341234, RedEvolution, velocity_b, myne17, teto111, aVoid, Central-Gsm, 1101, JackalReborn, InjectioN, h4lted, c0re, DisPater, markt4death, splatta, Jackowacko, saint556, Pyron2312, Azerion, howsens, white.hat.gone.bad, vazzilly, pwunkz, Inverted, QuarterCask, Infernoe11, deskata, cr4ck3rj4ck, Blizer, jasonmax, j0sh, gwenwavor, N4g4c3N, spizeyboy, Network X, Uino59, Jae Cee, ianFDK, saykov, medhaavee, zofy, demonkiller410, Stumble, SaMTHG, kishore, Raze, helasraizam, Venom1019, Jakabo