Changeset 6203
- Timestamp:
- 02/05/08 07:13:09 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/java/jimmy/trunk/jimmy/src/main/java/jimmy/RC4.java
r6159 r6203 30 30 public static byte[] encrypt( byte[] key, byte[] bs ) 31 31 throws WinnyProtocolException { 32 byte[] newk = ConvertUtil.getCStringByte( key ); 33 return new ARC4Cipher(newk).encrypt( bs ); 32 return new ARC4Cipher(key).encrypt( bs ); 34 33 } 35 34 36 35 public static byte[] decrypt( byte[] key, byte[] bs ) 37 36 throws WinnyProtocolException { 38 byte[] newk = ConvertUtil.getCStringByte( key ); 39 return new ARC4Cipher(newk).decrypt( bs ); 37 return new ARC4Cipher(key).decrypt( bs ); 40 38 } 41 39 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)