![](/img/trans.png)
[英]Which packages I should import to be able to use Crypto and encodeBase64URLSafeString?
[英]how decode the encodeBase64URLSafeString hashkey
如何使用 encodeBase64URLSafeString 解码编码字符串。
代码: KeyGenerator generator = KeyGenerator.getInstance("HmacSHA1");
SecretKey key = generator.generateKey();
encodedKey = Base64.encodeBase64URLSafeString(key.getEncoded());
output:
E6S9fTfMfAgkNVodHLDmxz-2M_g90bpFztW6GB7-7VcGfyOkugESxjNx1CGf5taJDXz895uWAF5ubPnaqhe4nw
谁能帮我解码加密格式的 output 字符串?
尝试使用 jasypt 库进行解密,但它会引发错误的输入错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.