如何使用命令行工具解码base64文件 [英] How to decode a base64 file with command line tools

查看:189
本文介绍了如何使用命令行工具解码base64文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用PC上的命令行对base64文件进行解码.该文件包含一大段已编码的文本.

I am trying to decode a base64 file using command line on my PC. The file contains a large block of encoded text.

有解决方案吗?

推荐答案

Windows有一个名为certutil的实用程序,可以对证书执行各种操作.由于证书有时是用base64编码的,因此certutil包含可以在任何文件上使用的编码和解码操作,而不仅仅是证书.

Windows has a utility named certutil which performs a variety of operations on certificates. Because certificates are sometimes encoded in base64, certutil contains encode and decode operations that can be used on any file, not just certificates.

要解码,只需:

certutil -decode 输入文件 输出文件

certutil -decode inputfile outputfile

详细信息位于:

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/certutil

这篇关于如何使用命令行工具解码base64文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆