-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #943 from juestchaos/main
更新
- Loading branch information
Showing
11 changed files
with
88 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
--- | ||
uid: 20230329140202 | ||
title: 加密与安全(git-crypt) | ||
description: | ||
title: git-crypt - transparent file encryption in git | ||
tags: [加密] | ||
description: 加密与安全(git-crypt) | ||
author: MechCrafter | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240320223958 | ||
modified: 20250202194717 | ||
--- | ||
|
||
# git-crypt - transparent file encryption in git | ||
|
||
从 git-crypt 的[官方文档](https://github.com/AGWA/git-crypt/blob/master/README.md)中可知: | ||
从 git-crypt 的 [官方文档](https://github.com/AGWA/git-crypt/blob/master/README.md) 中可知: | ||
|
||
`git-crypt` 使用 AES-256 在 CTR 模式下对文件进行加密,并且使用基于文件 SHA-1 HMAC 生成的合成初始化向量(IV)。这种操作模式在确定性选择明文攻击下被证明具有语义安全性,确保除了判断两个文件是否完全相同之外,不会泄露其他任何信息。 | ||
|
||
|
@@ -40,6 +41,7 @@ modified: 20240320223958 | |
```bash | ||
gpg --version | ||
``` | ||
|
||
```shell | ||
gpg (GnuPG) 2.4.3 | ||
libgcrypt 1.10.2 | ||
|
@@ -60,30 +62,34 @@ Compression: Uncompressed, ZIP, ZLIB, BZIP2 | |
```bash | ||
git --vesion | ||
``` | ||
|
||
```shell | ||
git version 2.42.0.windows.1 | ||
``` | ||
|
||
```bash | ||
git-crypt --version | ||
``` | ||
|
||
```shell | ||
git-crypt 0.7.0 | ||
``` | ||
|
||
# `git-crypt` 使用步骤 | ||
|
||
1. git 初始化 | ||
|
||
```bash | ||
git init | ||
``` | ||
|
||
2. 创建 `.gitattributes` 追踪文件 | ||
1. 创建 `.gitattributes` 追踪文件 | ||
|
||
``` | ||
.gitattributes | ||
``` | ||
|
||
3. 在 `.gitattributes` 中输入配置: | ||
1. 在 `.gitattributes` 中输入配置: | ||
|
||
``` | ||
*.md filter=git-crypt diff=git-crypt | ||
|
@@ -101,7 +107,7 @@ Test/*.md filter=git-crypt diff=git-crypt | |
Test/** filter=git-crypt diff=git-crypt | ||
``` | ||
|
||
4. 提交 `.gitattributes` 文件 | ||
1. 提交 `.gitattributes` 文件 | ||
|
||
```bash | ||
git add .gitattributes | ||
|
@@ -111,7 +117,7 @@ git add .gitattributes | |
git commit -m add.gitattributes | ||
``` | ||
|
||
5. 生成 `gpg` 密钥(推荐在 `kleopatra` 中生成,因为有 GUI) | ||
1. 生成 `gpg` 密钥(推荐在 `kleopatra` 中生成,因为有 GUI) | ||
|
||
```bash | ||
gpg2 --full-gen-key < 2.1.17 | ||
|
@@ -168,19 +174,19 @@ uid YOUR_NAME (test) <[email protected]> | |
sub rsa3072 2024-02-25 [E] | ||
``` | ||
6. `git-crypt` 初始化 | ||
1. `git-crypt` 初始化 | ||
```bash | ||
git-crypt init | ||
``` | ||
7. 把第五步生成的密钥导入仓库 | ||
1. 把第五步生成的密钥导入仓库 | ||
```bash | ||
git-crypt add-gpg-user <gpg pub uid> | ||
``` | ||
8. 正常提交文件 | ||
1. 正常提交文件 | ||
```bash | ||
git add . | ||
|
@@ -190,16 +196,18 @@ git add . | |
git commit -m "all file" | ||
``` | ||
9. 本地加密 | ||
1. 本地加密 | ||
```bash | ||
git-crypt lock | ||
``` | ||
解密 | ||
```bash | ||
git-crypt unlock | ||
``` | ||
--- | ||
`.gitattributes` 文件配置解释: | ||
|
@@ -219,7 +227,6 @@ Test/*.md filter=git-crypt diff=git-crypt | |
意思是 `.md` `.xlsx` `.jpg` `.png` 文件是被加密文件 | ||
```bash | ||
git-crypt status //查看加密情况 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
uid: 20250207120118 | ||
title: Obsidian 插件:Recent Notes 按照时间分组排序的浏览历史插件 | ||
tags: ['文件管理', 'Obsidian 插件'] | ||
description: Obsidian 插件:Recent Notes 按照时间分组排序的浏览历史插件 | ||
author: OS | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20250207130238 | ||
--- | ||
|
||
# Obsidian 插件:Recent Notes 按照时间分组排序的浏览历史插件 | ||
|
||
## 概述 | ||
|
||
相比用户量很多,老牌的 [[recent-files-obsidian]] 插件,这个插件推荐的理由除了完美兼容了老牌插件的能力,还提供了几个新特性。 | ||
|
||
> [!note] 插件名片 | ||
> 插件名称:Recent Notes | ||
> 插件作者:Kamil Rudni | ||
> 插件描述:按照自然时间段展示最近操作过的文件,且提供建议的预览功能 | ||
> 插件版本:1.0.9 | ||
> 插件分类:[ 文件管理 ', 'obsidian 插件 '] | ||
> 插件项目地址:[链接](https://github.com/kamil-rudnicki/obsidian-recent-notes) | ||
> 国内下载地址:[下载安装](https://pkmer.cn/products/plugin/pluginMarket/?recent-notes) | ||
## 效果&特性 | ||
|
||
1. 安装并启用后,会在左侧面板生成一个 时钟样式的图标,同 [[recent-files-obsidian]] | ||
2. 点击该图标,可以看到最近浏览过的文档,同 [[recent-files-obsidian]] | ||
3. 支持设置最多历史记录数量,同 [[recent-files-obsidian]] | ||
4. 能够按照自然时间对历史文档进行分组,管理和查看更自然 | ||
5. 能够自己定义显示摘要的细节程度 | ||
6. 能够自定义是否排除某个文件和文件夹在最近历史的显示 | ||
7. 能够自定义哪一类型的文件显示在最近历史中 | ||
|
||
## 使用 | ||
|
||
1. 基本上属于开箱即用,许哟啊妮在侧边栏找到按钮,拖动到你习惯的位置【这点略逊于 [[recent-files-obsidian]],后者默认会在左侧边栏】 | ||
2. 设置 | ||
- Maximum notes to show:可以设定最大记录的历史数量,默认 100 | ||
- Preview lines:用于控制每个历史条目摘要的预览内容细节程度,从 1 行到 3 行,自行设置 | ||
- Excluded folders:可以设置哪些文件夹或者单独文件排除在历史记录外 | ||
- File types to show:控制哪些文件格式的会显示在历史记录中 | ||
- md | ||
- 图片 | ||
- 音频 | ||
- 视频 | ||
- canvas | ||
- csv |
This file was deleted.
Oops, something went wrong.