WARNING
Version 2.0.0 breaks compatibility with current encrypted messages unless you follow the steps described in Keep the previous behavior
A CodeLens/Hover provider that automatically decrypts identified text and show as a CodeLens/Hover.
Encrypt/decrypt text within the file.
Encrypting accepts your selection, or hole line if no selection, encrypts it and replaces with the fenced block ${token}<your text>${endToken}
(token/endToken are configurable)
Decrypting search for the fenced block and then replaces by the plain text.
The fenced block is the default behavior because of this limitation.
- Set Start token to
secretlens:
- Set End token to empty string or
null
- Set Exclude end fence option to
true
Command | Description |
---|---|
Encrypt | Encrypt the text and replaces with ${token}<encrypted text>${endToken} |
Decrypt | Decrypt the fenced block and replaces with <decrypted text> |
Set password | Set a new password |
Forget password | Clears the current password |
Copy secret | Copy the selected secrets decrypted to clipboard separated by Copy separator |
Setting | Description | Default Value |
---|---|---|
Display Type | How to display the secret: CodeLens, Hover or both | CodeLens |
Start token | Token for identifying the begining of encrypted text | <sl: |
End token | Token for identifying the end of encrypted text | :sl> |
Exclude end fence | Exclude the end fence when encrypting texts | false |
Language identifiers | Languages in which SecretLens will run | ALL |
Copy separator | Separator for when copying multiple secrets | \n |
Remember period | How many seconds the password will be remembered before being erased from cache | -1 (forever) |
Recursive | Go inside subdirectories to encrypt/decrypt files | false |
Crypto method | How the secrets are encrypted | Default legacy implementation |
If you like this extension, please consider donate and/or take a moment to write a review and share on Facebook or Twitter