RC4 encryption java

后端 未结 6 1021
没有蜡笔的小新
没有蜡笔的小新 2020-12-14 05:12

Hi there I am trying to implement the RC4 algorithm in Java. I found this code as an example that help me to understand the idea:

public class RC4 {
  privat         


        
6条回答
  •  孤街浪徒
    2020-12-14 05:38

    1) int array: probably because Java doesn't support unsigned bytes.

    2) Null exception: I counted line 12 being this one: S[i] = i; It looks like the S array is not being constructed before it's used.

提交回复
热议问题