업데이트로 돌아가기
New releaseSep 3, 2026

cryptr v4.0.0

scrypt를 사용하여 파일을 암호화 및 복호화하는 간단한 셸 유틸리티입니다.

공유

cryptr

OpenSSL을 사용하여 파일을 암호화 및 복호화하는 간단한 셸 유틸리티입니다.

설치

git clone https://github.com/nodesocket/cryptr.git
ln -s "$PWD"/cryptr/cryptr.bash /usr/local/bin/cryptr

요구 사항

  • shred (선택적으로 원본 파일을 삭제할 때 필요)

Bash 탭 완성

tools/cryptr-bash-completion.bash를 탭 완성 파일 디렉터리에 추가하세요.

명령어

encrypt

encrypt <file> - OpenSSL AES-256 암호 블록 체인을 사용하여 파일을 암호화합니다. 암호화된 파일 *(암호문)*을 .aes 확장자를 추가하여 출력합니다.

➜ cryptr encrypt ./secret-file
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
do you want to shred the original file? (y/N): N
➜ ls -alh
-rw-r--r--  1 user  group   1.0G Oct  1 13:33 secret-file
-rw-r--r--  1 user  group   1.0G Oct  1 13:34 secret-file.aes

선택적으로 CRYPTR_PASSWORD 환경 변수를 사용하여 암호화할 때 사용할 비밀번호를 정의할 수 있습니다 (셸 기록에 비밀번호가 저장될 수 있음에 유의하세요). 이를 통해 비대화형/배치 작업이 가능합니다.

➜ CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47n cryptr encrypt ./secret-file

decrypt

decrypt <file.aes> - OpenSSL AES-256 암호 블록 체인을 사용하여 암호화된 파일을 복호화합니다. .aes 확장자를 제거하여 복호화된 파일 *(평문)*을 출력합니다.

➜ ls -alh
-rw-r--r--  1 user  group   1.0G Oct  1 13:34 secret-file.aes
➜ cryptr decrypt ./secret-file.aes
enter aes-256-cbc decryption password:
➜ ls -alh
-rw-r--r--  1 user  group   1.0G Oct  1 13:35 secret-file
-rw-r--r--  1 user  group   1.0G Oct  1 13:34 secret-file.aes

선택적으로 CRYPTR_PASSWORD 환경 변수를 사용하여 복호화할 때 사용할 비밀번호를 정의할 수 있습니다 (셸 기록에 비밀번호가 저장될 수 있음에 유의하세요). 이를 통해 비대화형/배치 작업이 가능합니다.

➜ CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47n cryptr decrypt ./secret-file.aes

파일을 디스크에 쓰는 대신 평문을 stdout으로 출력하려면 --stdout 플래그를 decrypt 명령의 마지막 인수로 전달하세요:

➜ cryptr decrypt ./secret-file.aes --stdout

help

help - 도움말을 표시합니다

➜ cryptr help
Usage: cryptr command <command-specific-options>

  encrypt <file>                  Encrypt file
  decrypt <file.aes> [--stdout]   Decrypt encrypted file
  help                            Displays help
  version                         Displays the current version

version

version - 현재 버전을 표시합니다

➜ cryptr version
cryptr 3.0.0

default

default - 현재 버전과 도움말을 표시합니다

➜ cryptr
cryptr 3.0.0

Usage: cryptr command <command-specific-options>

  encrypt <file>                  Encrypt file
  decrypt <file.aes> [--stdout]   Decrypt encrypted file
  help                            Displays help
  version                         Displays the current version

변경 로그

https://github.com/nodesocket/cryptr/blob/master/CHANGELOG.md

지원, 버그 및 기능 요청

GitHub에서 이슈를 생성해 주세요 (https://github.com/nodesocket/cryptr/issues).

버전 관리

릴리스 주기에 대한 투명성과 통찰력을 제공하고, 하위 호환성을 유지하기 위해 cryptr은 시맨틱 버전 관리 지침에 따라 유지됩니다.

릴리스는 다음 형식으로 번호가 매겨집니다:

<major>.<minor>.<patch>

그리고 다음 지침에 따라 구성됩니다:

  • 하위 호환성을 깨는 변경은 major를 올립니다 (minor와 patch는 초기화됨)
  • 하위 호환성을 깨지 않는 새로운 추가는 minor를 올립니다 (patch는 초기화됨)
  • 버그 수정 및 기타 변경은 patch를 올립니다

시맨틱 버전 관리에 대한 자세한 내용은 http://semver.org/를 방문하세요.

라이선스 및 법적 고지

Copyright 2026 Justin Keller

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

카테고리