Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A multiplatform easy to embed crypto library.

License

NotificationsYou must be signed in to change notification settings

rafael-santiago/kryptos

Repository files navigation

linux-cifreebsd-cinetbsd-ciopenbsd-ciwindows-ci

I started the core of this project on about 2004 and since then it is being an attempt of building a tiny and straightforwardcrypto library which can be easily integrated with user and also kernel mode code.

Until now these are the supported platforms:

PlatformUser modeKernel mode
FreeBSD✔️✔️
Linux✔️✔️
OpenBSD✔️
NetBSD✔️✔️
MINIX✔️
SOLARIS✔️
Windows✔️✔️

Features

Stream cipher:ARC4,SEAL,RABBIT,Salsa20,ChaCha20.

Block cipher:AES,DES,3DES,3DES-EDE,IDEA,RC2,RC5,RC6,FEAL,CAST5,Camellia,SAFER-K64,Blowfish,Serpent,TEA,XTEA,MISTY1,MARS,PRESENT,SHACAL-1,SHACAL-2,NOEKEON,GOST,TWOFISH.

Modes of operation:ECB,CBC,OFB,CTR,GCM.

Cryptographic hashes:SHA-1,SHA-224,SHA-256,SHA-384,SHA-512,MD4,MD5,RIPEMD-128,RIPEMD-160,SHA3-224,SHA3-256,SHA3-384,SHA3-512,KECCAK-224,KECCAK-256,KECCAK-384,KECCAK-512,BLAKE2s-256,BLAKE2b-512,BLAKE2s-N,BLAKE2b-N,BLAKE3,Tiger,Whirlpool.

Non-cryptographic hashes:djb2 (string hashing),SipHash.

Message authentication code:HMAC,Poly1305,SipHash (recommended for short messages only),GCM (for all 128-bit block ciphers).

PK crypto:RSA,RSA-OAEP,El Gamal,RSA-EMSA/PSS,DSA,ECDSA,DH,ECDH.

CSPRNG: From the system (default one),Fortuna.

Codification stuff:Base64,Base32,Base16,UUEncode.

Compression stuff:Huffman coding.

Key derivation functions:HKDF,PBKDF2,Argon2.

One-time passwords:HOTP,TOTP.

Extras: Common API between user space / kernel space (Windows,FreeBSD,NetBSD andLinux),RAM swappingcares, data wiping when freeing memory,PEM as its common input/output (for some algorithms), convenience function macrosto make it easy to use all available cryptographic functions (C99 required).

In order to know more you should starthere.

This library is licensed underGPLv2 if for some reason it does not fit into your stuff you can contact me and let'stalk about.


Bear in mind: Use this software at your own risk. I am not responsible for any misuse of it, including some kind of damage,data loss etc. The software is provided with no warranty. Also watch the crypto regulations for your country and the licensesof the current available ciphers before using this library.

Remark: I do not provide pre-builts, if you have found any pre-built of this library somewhere, Ido not endorse it.


[8]ページ先頭

©2009-2025 Movatter.jp