🔬 Web Crypto API

Table of Contents

Reference

Implementation

Demo

htmlinline

Enter text to encrypt, click Encrypt, then enter a password when prompted. A base64 representation of the encrypted data will be displayed.


Click Decrypt and then enter the same password as used for encrypting.

Encrypting a token

htmlinline
txtUpdated 3w ago
Stored encrypted token in file /.github_token
mdUpdated 3w ago

Decrypted token in file /.github_token; All set up.

{ token: '••••••••••', username: 'dotlitdev', repository: 'dotlit', branch: 'main', prefix: 'src' }