请高手帮忙啊,还有一个问题,就是:脱离jbuilder后,会出现不能动错误。
Exception in thread "main" java.lang.NoSuchMethodError
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.verify(DashoA6275)
at javax.crypto.SunJCE_b.f(DashoA6275)
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at encode_decode_study.DES.<init>(encode_decode_test.java:91)
at encode_decode_study.crypt_test.main(crypt_test.java:20)这怎么解决啊!
Exception in thread "main" java.lang.NoSuchMethodError
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.verify(DashoA6275)
at javax.crypto.SunJCE_b.f(DashoA6275)
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at encode_decode_study.DES.<init>(encode_decode_test.java:91)
at encode_decode_study.crypt_test.main(crypt_test.java:20)这怎么解决啊!
byte(41): Description: author [email protected]
但是实际读出为:
byte(32):Description: author nch@peoplema代码如问题(上面)。
请高手帮忙!谢谢!!!!!
就用标准流,read原文后调用encode写入,要解密先read密文在decode,OK,我就是这样的。
treeClimber(我以我血荐轩辕) 一样的方法。但是我更想知道用流加密是怎么实现的。