```
package me.cqc;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.IOE
public static void main(String[] args) {
Path path = Paths.get(StandardSystemProperty.JAVA_IO_TMPDIR.value(), "cipher");
String s = "基于流的方式,在传输或存取时进行加减密";
try {
KeyGenerator key