문제

I have the following line of code that is taking less than a second on my computer (windows 7) and about 20 seconds on a Redhat server :

Cipher cipher = Cipher.getInstance(TRANSFORMATION);

where TRANSFORMATION is defind as :

private static final String TRANSFORMATION = "Blowfish/ECB/PKCS5Padding";

What could be the source of such behaviour ?

Thanks.

도움이 되었습니까?

해결책

Initialization of the Bouncy Castle provider and - probably - a slow /dev/random.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top