Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

75
80

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WindowsでBase64エンコード/デコードする方法

Last updated at Posted at 2017-02-14

WindowsでもBase64エンコード/デコードができるんです!

コマンドプロンプト標準搭載のcertutilコマンドを使えば、Windowsでも追加インストールなしでBase64エンコード/デコードを行うことができます。

エンコード

encode
certutil -f -encode "入力ファイル" "出力ファイル"

※出力ファイルの最初と最後にそれぞれ、-----BEGIN CERTIFICATE----------END CERTIFICATE-----が追加される仕様となっています。
また、画像ファイルをエンコードにも対応しています。

デコード

decode
certutil -f -decode "入力ファイル" "出力ファイル"

certutilコマンド

certutilコマンドは、証明書関係のコマンドです。
証明書のインストールなどの他にも、-hashfileを使えばハッシュ値も計算できます。

MD5
certUtil -hashfile "ファイルパス" MD5

参考リンク

Windowsでbase64エンコード・デコードする方法 - Eiji James Yoshidaの記録
Winodws Server 2012R2 「certutil」コマンドの一覧 : 派遣社員からフリーランスへ!英語×ITスキル×海外投資=至高の経済的自由を手にするブログ

75
80
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

@halpas's pickup articles

halpas

@halpas

linux初心者です。

Linked from these articles

Comments

jTakasuRyuji
@jTakasuRyuji

ツールが無い端末でファイルを復元できました。
ありがとうございます

1
halpas
@halpas

お役に立てたのであれば幸いです。
コメントありがとうございました。

0

Let's comment your feelings that are more than good

Qiita Conference 2025 Autumn will be held!: 11/5(Wed) - 11/7(Fri)

Qiita Conference is Qiita's largest tech conference, dedicated to engineers in the age of AI!

Keynote Speaker

piacere, Tsuyoshi Ushio, Esteban Suarez, Takuto Wada, seya, MinoDriven, Toshihiro Ichitani, Karaage, Yoshimasa Iwase, Matz, Minorun and more…

View event details

Being held Article posting campaign

75
80

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address