我想使用java标准库,据我所知,它的函数输入是有限的。为此,我实现了两个方法。下面是它们:
private byte[] RSAenc(String in) throws Exception {
Cipher c = Cipher.getInstance("RSA");
c.init(Cipher.ENCRYPT_MODE, privKey);
int l = in.length();
byte[] part;
byte[] result = new byte[(int)(64*java.lang.Math.ceil(l/20.0))
我不能得到管理ssh密钥的系统。
我想向Heroku推送应用程序,所以我尝试了推送,但遇到了错误。
这是我的日志
$ git push heroku master
! Your key with fingerprint bf:f6:ed:14:9d:cd:52:a2:a3:16:b2:e9:b4:f2:bf:ba is not authorized to access warm-samurai-6574.
fatal: The remote end hung up unexpectedly
User@PK /e/examples (master)
$ heroku k