You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/main/java/org/sonatype/plexus/components/cipher/PBECipher.java
+12-62Lines changed: 12 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,3 @@
1
-
/*
2
-
* createCipher routine was adopted from http://juliusdavies.ca/svn/not-yet-commons-ssl/tags/commons-ssl-0.3.10/src/java/org/apache/commons/ssl/OpenSSL.java
3
-
* which is distributed under APL-2.0 license: http://www.apache.org/licenses/LICENSE-2.0
4
-
*/
5
-
6
1
/*
7
2
Licensed to the Apache Software Foundation (ASF) under one
8
3
or more contributor license agreements. See the NOTICE file
@@ -29,10 +24,14 @@ Licensed to the Apache Software Foundation (ASF) under one
29
24
importjava.security.MessageDigest;
30
25
importjava.security.NoSuchAlgorithmException;
31
26
importjava.security.SecureRandom;
27
+
importjava.security.spec.InvalidKeySpecException;
28
+
importjava.security.spec.KeySpec;
32
29
33
30
importjavax.crypto.Cipher;
34
31
importjavax.crypto.NoSuchPaddingException;
32
+
importjavax.crypto.SecretKeyFactory;
35
33
importjavax.crypto.spec.IvParameterSpec;
34
+
importjavax.crypto.spec.PBEKeySpec;
36
35
importjavax.crypto.spec.SecretKeySpec;
37
36
38
37
/**
@@ -81,7 +80,7 @@ public String encrypt64( final String clearText, final String password )
0 commit comments