Giter VIP home page Giter VIP logo

emacs-kaesar's Introduction

kaesar.el

AES (Rijndael) implementations for Emacs

This package provides AES algorithm to encrypt/decrypt Emacs string. Supported algorithm desired to get interoperability with openssl command. You can get decrypted text by that command if you won't forget password.

Install:

Put this file into load-path'ed directory, and !!!!!!!!!!!!!!! BYTE COMPILE IT !!!!!!!!!!!!!!! And put the following expression into your .emacs.

(require 'kaesar)

Usage:

  • To encrypt a well encoded string (High level API) kaesar-encrypt-string <-> kaesar-decrypt-string

  • To encrypt a unibyte string with algorithm (Middle level API) kaesar-encrypt-bytes <-> kaesar-decrypt-bytes

  • To encrypt a unibyte with algorithm (Low level API) kaesar-encrypt <-> kaesar-decrypt

Sample:

  • To encrypt my secret Please ensure that do not forget clear-string you want to hide.
(defvar my-secret nil)
(let ((raw-string "My Secret"))
  (setq my-secret (kaesar-encrypt-string raw-string))
  (clear-string raw-string))
  • To decrypt my-secret
(kaesar-decrypt-string my-secret)

NOTE:

Why kaesar? This package previously named cipher/aes but ELPA cannot handle such package name. So, I had to change the name but aes package already exists. (That is faster than this package!) I continue to consider the new name which contains "aes" string. There is the ancient cipher algorithm caesar http://en.wikipedia.org/wiki/Caesar_cipher Kaesar is change the first character of Caesar. There is no meaning more than containing aes word.

How to suppress password prompt? There is no official way to suppress that prompt. If you want to know more information, please read kaesar-password doc string.

kaesar-file.el

Install:

Put this file into load-path'ed directory, and byte compile it if desired. And put the following expression into your ~/.emacs.

(require 'kaesar-file)

Usage:

Simply encrypt or decrypt file using kaesar-file-encrypt and kaesar-file-encrypt:

(kaesar-file-encrypt "/path/to/file.txt")
(kaesar-file-decrypt "/path/to/file.txt")

kaesar-mode.el

Install:

Put this file into load-path'ed directory, and byte compile it if desired. And put the following expression into your ~/.emacs.

(require 'kaesar-mode)

Usage:

This package intention to enable-local-variables as default value t If you change this variable to nil then you must execute M-x kaesar-mode explicitly.

kaesar-pbkdf2.el

Extension pacakge for kaesar.el . The latest (at least 2023-02-21) openssl key derivation use the algorithm.

NOTE: PBKDF2 is Password-Based Key Derivation Function 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.