tai / decrypt-xyz3w Goto Github PK
View Code? Open in Web Editor NEWDecrypts newer *.3W format generated by XYZPrinting XYZware into zipped *.gcode (for daVinci 3D printer)
Decrypts newer *.3W format generated by XYZPrinting XYZware into zipped *.gcode (for daVinci 3D printer)
bash-3.2$ java DecryptXYZ3W DaVinci1ProFilamentHolder.3w foo.zip
Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2260)
at DecryptXYZ3W.main(DecryptXYZ3W.java:51)
bash-3.2$ ls -lh foo.zip
-rw-r--r-- 1 xxx staff 0B Nov 16 00:59 foo.zip
System: Win10
Java: jdk1.8.0_121
Zip-Tool: 7-zip, standard built-in win zip
Thank you very much for writing and releasing this very useful tool! However it seems not to work anymore. I get the exception "Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded". According to this post on Stakeoverflow, I changed aes.doFinal to aes.update which helped to get rid off the error. However, I now cannot open the zip archive. The created archives are reported as corrupted. Can you please have a look at this? I consider your tool so useful and I am not a java expert.
Hi!
Really like your work, however I can't get it working.
I got the following exception:
Am I using it wronly?
Is it still supported for the new versions?
Am I supossed to do something with the 'decryption key'?
Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
at java.base/com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:859)
at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:939)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:735)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2263)
at DecryptXYZ3W.main(DecryptXYZ3W.java:51)
Hello,
i have installed JDK 1.8.0_161 and have added the Parameters in Windows (Path, CLASSPATH). All of the three lines code to convert a 3w File to a zip File runs without an error. But i gets no zip File at the end of converting.
What is the error?
Greetings
Tibercad
4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.