All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.core.secure.Crypt.class Maven / Gradle / Ivy

Go to download

TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)

There is a newer version: 2.5.2
Show newest version
????4~d
efgh
ij
k
l
mno
?p	q	r	s	t
u	v	wxy
zx{
|
}
~
?
?
??
???
 p
 ??
 ?
???
 ?
???
???
???
?
??
????
2p??
2?
?
???
?	?	?
:??
??
??
B??
D?
??
???
Hp
??
??
??
??
???
?
??
H?
H???
?
??
??
X?
X?
X?
???
???
?
`?
??
e?
?
?
?
?
?
a?
??
np
n?
a?
a?????
?
??
wp
w??	??
???
??
??
??
??
??
 ??
???
?p
??
?
??
?
s?
s?
??
?
??
???
??
?
?
	


InnerClassesLOG Lorg/apache/commons/logging/Log;keyLjava/security/Key;encodingLjava/lang/String;	algorithm	useBASE64Z	paramSpec+Ljava/security/spec/AlgorithmParameterSpec;ENCODE_UTF8
ConstantValueALGO_DESALGO_AESALGO_AES_NOPADDINGALGO_PBEWithSHAAndAESALGO_PBEWithMD5AndDESALGO_PBEWithHmacSHA1AndDESedesalt8[Bsalt16()VCodeLineNumberTableLocalVariableTablethis Lde/tsl2/nano/core/secure/Crypt;([B)Vpwd
StackMapTable??([BLjava/lang/String;)V(Ljava/security/Key;)V;(Ljava/security/Key;Ljava/lang/String;Ljava/lang/String;Z)VpreInit(Ljava/lang/String;)VgenerateKey)([BLjava/lang/String;)Ljava/security/Key;toCharArray([B)[Ce&Ljava/io/UnsupportedEncodingException;?getTransformationPathJ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;modepaddinggetAlgorithmFromPath&(Ljava/lang/String;)Ljava/lang/String;path	providers()Ljava/lang/String;iIpsLjava/lang/StringBuilder;[Ljava/security/Provider;??provideLjava/lang/Exception;?downloadProvider
algorithm2clLjava/lang/ClassLoader;createParamSpec?(Ljava/lang/String;)Ljava/security/spec/AlgorithmParameterSpec;createPBEParamSpec-()Ljava/security/spec/AlgorithmParameterSpec;generateSecretKeygeneratePBEKey)([CLjava/lang/String;)Ljava/security/Key;
pbeKeySpecLjavax/crypto/spec/PBEKeySpec;keyFacLjavax/crypto/SecretKeyFactory;[CgenerateRandomKey'(Ljava/lang/String;)Ljava/security/Key;	generatorLjavax/crypto/KeyGenerator;generateKeyPair+(Ljava/lang/String;)Ljava/security/KeyPair;kpg Ljava/security/KeyPairGenerator;generatePassword(I)Ljava/lang/String;lengthpasswordBuffer(Ljava/lang/String;[B)V(Ljava/security/NoSuchAlgorithmException;?isPBE(Ljava/lang/String;)Z()Ljava/security/Key;hashHex;(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String;streamLjava/io/InputStream;hash+(Ljava/io/InputStream;Ljava/lang/String;)[BdigestStream!Ljava/security/DigestInputStream;??encrypt,(Ljava/io/InputStream;)Ljava/io/InputStream;>(Ljava/io/InputStream;Ljava/lang/String;)Ljava/io/InputStream;contentExpressiondecryptdata;([BLjava/security/Key;Ljava/lang/String;)Ljava/lang/String;{([BLjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/lang/String;Ljava/lang/String;ZII)Ljava/lang/String;rawoffsetencodeBase64([B)Ljava/lang/String;hexcipherh(Ljava/lang/String;ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/Cipher;exspecLjavax/crypto/Cipher;?
Exceptions	encryptedfv(Ljava/lang/String;Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/lang/String;)Ljava/lang/String;?(Ljava/lang/String;Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/lang/String;Ljava/lang/String;ZII)Ljava/lang/String;bytesbase64Length(I)Inbase64ToByteLengthdecodeBase64(Ljava/lang/String;)[BLjava/io/IOException;?logtxtgetData7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;argtypeLjava/lang/Class;LocalVariableTypeTableLjava/lang/Class;	SignatureC(Ljava/lang/String;Ljava/lang/Class;)TT;getFileName
canDecrypt()Zvalidatecertificatesign([BLjava/lang/String;I)[B
hashAlgorithm
hashLengthcheckSignification([B[BLjava/lang/String;I)Vmain([Ljava/lang/String;)Vbase64iiincludecargs[Ljava/lang/String;_
SourceFile
Crypt.javaDESde/tsl2/nano/core/secure/CryptDES/ECB/PKCS5PaddingUTF-8??AES/CBC/PKCS5Padding???????????????????????O????????java/lang/String??? $java/io/UnsupportedEncodingException!"#java/lang/StringBuilder$%/&?'(?available security providers:
??)*+	,-?
./0java/lang/Exception??123450de/tsl2/nano/core/classloader/NetworkClassLoader.de/tsl2/nano/core/execution/CompatibilityLayer$de.tsl2.nano.jarresolver.JarResolverorg.bouncycastle67??89ECB!javax/crypto/spec/IvParameterSpec:??????"javax/crypto/spec/PBEParameterSpec?;??javax/crypto/spec/SecretKeySpecjavax/crypto/spec/PBEKeySpec?<=>?/@java/security/SecureRandomAB?C/DEFGSHA1PRNG
H,/IJ?&java/security/NoSuchAlgorithmExceptionPBE-,java/security/DigestInputStreamK/L?MNOPQRS.*!# de/tsl2/nano/core/secure/Crypt$1javax/crypto/Cipher./?T%# de/tsl2/nano/core/secure/Crypt$2U??O!(USVW+,sun/misc/BASE64EncoderX,/YAZjava/lang/Integer%8>?sun/misc/BASE64Decoder[?java/io/IOException\]^_`?-file:M?java/io/InputStreamabcdefgh"java/lang/IllegalArgumentException$i
 not allowed!'java/lang/UnsupportedOperationExceptionjkS%?lm:DEnopOkqB?-base64rst
.encrypteduvwx
.decryptedyz
encrypted:!?
decrypted:]usage: Crypt   *  example 1: Crypt mYpASsWord AES meintext'  example 2: Crypt hash 32 MD5 meintext8  example 3: Crypt mYpASsWord AES -file:meintextfile.txtO  example 4: Crypt mYpASsWord AES -file:meintextfile.txt -base64 -include:[^;]+  algorithms are:?  AES,AESWrap,ARCFOUR,Blowfish,CCM,DES,DESede,DESedeWrap,ECIES,GCM,PBEWithAnd,RC2,RC4,RC5,RSA
  Hash: MD2, MD5, SHA, SHA-1, SHA-256, SHA-384, SHA-512  providers are:
x  for further informations see: http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Cipher{|}java/lang/Object de/tsl2/nano/core/secure/ISecureAES/CBC/NoPaddingPBEWithSHAAndAESPBEWithMD5AndDESPBEWithHmacSHA1AndDESedejava/security/Keyjava/lang/ClassLoader)java/security/spec/AlgorithmParameterSpecjava/security/KeyPairGeneratorgetAlgorithmorg/apache/commons/logging/LogisDebugEnableddebug(Ljava/lang/Object;)V()[C"de/tsl2/nano/core/ManagedExceptionforward,(Ljava/lang/Throwable;)Ljava/lang/Throwable;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;toString!de/tsl2/nano/core/util/StringUtil	substringjava/security/SecuritygetProviders()[Ljava/security/Provider;java/security/ProvidergetInfojavax/crypto/SecretKeyFactorygetInstance3(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;java/lang/Thread
currentThread()Ljava/lang/Thread;getContextClassLoader()Ljava/lang/ClassLoader;runOptionalMain((Ljava/lang/String;[Ljava/lang/String;)Vcontains(Ljava/lang/CharSequence;)Z
startsWith([BI)V([C)VgenerateSecret6(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;javax/crypto/KeyGenerator/(Ljava/lang/String;)Ljavax/crypto/KeyGenerator;init(Ljava/security/SecureRandom;)V()Ljavax/crypto/SecretKey;4(Ljava/lang/String;)Ljava/security/KeyPairGenerator;
initialize.(Ljava/security/spec/AlgorithmParameterSpec;)V()Ljava/security/KeyPair;toHexString0(Ljava/lang/String;)Ljava/security/SecureRandom;	nextBytesjava/security/MessageDigest1(Ljava/lang/String;)Ljava/security/MessageDigest;5(Ljava/io/InputStream;Ljava/security/MessageDigest;)Vread()IgetMessageDigest()Ljava/security/MessageDigest;digest()[BM(Lde/tsl2/nano/core/secure/Crypt;Ljava/io/InputStream;Ljavax/crypto/Cipher;)VgetBytesdoFinal([BII)[Bencode)(Ljava/lang/String;)Ljavax/crypto/Cipher;B(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)VdecodeBufferjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlnjava/lang/ClassisAssignableFrom(Ljava/lang/Class;)Zde/tsl2/nano/core/util/FileUtilgetFile)(Ljava/lang/String;)Ljava/io/InputStream;getFileBytes-(Ljava/lang/String;Ljava/lang/ClassLoader;)[B-(Ljava/lang/Object;)Ljava/lang/StringBuilder;de/tsl2/nano/core/util/Util
cryptoHashequals(Ljava/lang/Object;)ZvalueOf'(Ljava/lang/String;)Ljava/lang/Integer;intValue)(Ljava/lang/String;Ljava/lang/String;I)[Bde/tsl2/nano/core/util/ByteUtiltoByteArray(Ljava/io/InputStream;)[B
writeBytes([BLjava/lang/String;Z)VgetInputStream([B)Ljava/io/InputStream;write*(Ljava/io/InputStream;Ljava/lang/String;)J de/tsl2/nano/core/log/LogFactorygetLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;!???????????????????????????????????????????4???=*????
{|???????(*++?+????+??????
?'??(??(???S????????????????????S*+,?	?
,???
??? ?????????G*++????
???????????"*?*+?
*,?*-?*?*,??????	????!??4"??"??"??"??"??
???Z??????*??????????????{(*?*??
+??+??*?+??*+??????$?'??(??(???		D?
???j?Y*???L+?W?
???????????N?	???_!? Y?!*?"#?"+?"#?",?"?$???? !??!??!??	???2*#?%??????	????C? Y&?'K?(L=+??+*? Y?!)?"+2?*?"+?"?$?"W????*?$???
???8?>?? .??
9??5???????-
???g*?,W?L*?.?-????	?
??	?????H?
???r$?/?0L+?1??2Y?34?Y5S?6?????#??$??????#?
????=*??	?7?2*#?8?(*9?8??:Y*?;?	?????&?<??=???+
?$????@?
???%
??Y?<?@???
???x+?A?BY*+?C?M,?W?
-?
? ???????N?
???? +?A?DY*?EM+?,N-,?F?M,?W?-?
?4
??? ? ???X?
??&*?A*?	K*?GL+?HY?I?J+?K?L+?W?-?"(+	,-./0$1? ??&???^?		??*?LL+*??M?M,?W?+?N?
-?@A
EBCDF?*
????
?P??	
?K?LO+?P+?Q??OP
Q???	
?u*?R+?S?	M,?W?T?[^\]_? ?????K?1*U?;??a?????/*?
??g???	?=	*+?V?W??k?		??	??(?XY*+?Y?ZM,?[????,?\?]?M,?W? -?v
xy z!{&|?*
!??((????

? ??!"?<*+^?_??????!#??"?`Y*+*?*?
*??b?c?N-?W?-???? ??*??"??""$??Z?%"?<*+^?d??????%#??"?eY*+*?*?
*??b?f?N-?W?-???? ??*??"??""$??Z?!???-+*??g*?h*?*?*?*?+?i?j?M,?W?$%??%?&?+?? &??-??-&??e?	!??f *?k+?k,?	?
,?,*?i?j??????  &? ?? ??!'?O*+,?,*??j???? &?????!(??	4-+,?b*?l:??m??Y??:?W?)*-???*?,?2??f
)?,??4&?4??4??4??4??4??4*?4??(??J????????+,?6?nY?o*?p????)?-,?/*?Q????&?./??+:*?q:?:*?.*?q:??,-?r?	T?*
??	?????? ?(?>0+??+??+??+1?(.2?????34-%???*+*?
*?*?*?*?*??t?+?i?u???*??*5????"6???????6??????	%??Y*+?k,?	?
,?,t?u??? 5?????%7?V*+,-t?u???*5???????%8?-
N?
*?v?	*?g:??	??6-+,?b?l:	?Y	??:?W?CD-?'*&,8/D0F1L2?p0)?89?	F??N5?N??N??N??N??N??N*?N??+E???A???????:;?Plhp??`??7?<??O?=;?Plhp??d??;?<??O?>??h?wY?x*?y?L+?W?z?@A
BC?
?@5??LAB??6?{*?|??
HI?C?DE??O*}?;?G*?~K+???*???+????Y*???????Y? Y?!+????"?$???*??"L	MNOP%Q2SMV?OF?OGHIOGJ?KLM??2*}?%??[?F?NO?,??c???P??<??Y????m???Q?RS??/+,??::*?Y*????:?:?W?k?!?z{~?!#?)??H#??/??/&?/T?/U?'?$R???!6?????VW?Z??Y??????4??&?R?T?U?	XY?.?*??I*2????>? Y?!*2?"??"*2???*2*2???????Q?"?$????*??[?Y*2?k*2??L*2M,}?;?*??*2????>??6*??
*2?:+,????_:?b???m?k:? Y?!,?~?"??"?$??+?Y???v???d:? Y?!,?~?"??"?$??X?^? Y?!,?~?"??"?$??X+? Y?!,?"??"?$????d:? Y?!,?~?"??"?$??X?9? Y?!??"+,??YM?"?$??? Y?!??"+,???"?$???C?????????????????????? Y?!??"??"?$????????%??(?4?:?F?L?R?c?g?p???????????????????/?R?n?q??????????????????????????R?O9???Z???[???\???cD]?g@C??^_?=
?L?46?@?@?@??u? ?Z`6??5?a????????YqTY7TY0TY#TY?TY?TY?TY?T?<?YqTY7TY0TY#TYETYRTYTYTYcTY	?TY
'TYrTY?TY
?TY?TY?T?=??Zk9pbc?e`




© 2015 - 2024 Weber Informatics LLC | Privacy Policy