Adilol

Encryption?

Aug 7th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. void encrypt (char e[] )
  2. {
  3. for( int i=0; e[i] != '\0'; ++i ) ++e[i];
  4. } // encrypt
  5.  
  6. //decrypt data
  7. void decrypt( char * ePtr ) {
  8. for( ; * ePtr != '\0'; ==* ePtr ) --(* ePtr);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment